Vidyalelo
C Programming · Q251

Pointer

Programming · C Programming · question 251

Q251

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

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

Answer: Option A

Solution

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