A

Admin • 833K Points
Coach

Q. What will be output for the following code?

Code:
#include <stdio.h>
int main(int argc, char *argv[])
{
printf(""%s
"", argv[argc]);
return 0;
}
  • (A) Depends on the compiler
  • (B) Depends on the platform
  • (C) Executable file name
  • (D) Segmentation fault/code crash
  • Correct Answer - Option(D)
  • Views: 20
  • Filed under category C Programming
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.