Vidyalelo
C Programming · Q79

Pointer

Programming · C Programming · question 79

Q79

What will be the output of the following C code (run without any command line arguments)? #include int main(int argc, char *argv[]) while (*argv != NULL) printf("%s ", *(argv++)); return 0;

A.
Segmentation fault/code crash
B.
Executable file name
Answer
C.
Depends on the platform
D.
Depends on the compiler

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board