-
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;
}
-
- Depends on compiler
- Segmentation fault/code crash
- Executable file name
- Nothing
- None of these
Correct Option: B
Segmentation fault/code crash