Vidyalelo
C Programming · Q67

Pointer

Programming · C Programming · question 67

Q67

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

A.
Compile time error
B.
Executablefilename
Answer
C.
Segmentation fault
D.
Undefined

Answer: Option B

Solution

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