-
What will be the output of the following C code (run without any command line arguments)?
#include <stdio.h>
int main(int argc, char *argv[])
{
while (argv != NULL)
printf("%s\n", *(argv++));
return 0;
}
-
- Executable file name
- Depends on the platform
- Depends on the compiler
- Segmentation fault/code crash
- None of these
Correct Option: D
Segmentation fault/code crash