'What is the explanation of the first line of the function secret?
What is the meaning of the first line in the function secret? What is the output of return secret(3,argv)?
#include <stdio.h>
int secret(int argc, char **argv)
{
*argv && secret(0, argv + 1) &&
argc == 0 && printf("%s\n", *argv);
return argc == 0;
}
int main()
{
char *argv[] = {"hello", "XYZ", "123", "ABC", NULL};
return (secret(3,argv));
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
