Top

Discussion

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\n",  *(argv++));
        return 0;
    }

 

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

Answer: A

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment