A

Admin • 833K Points
Coach

Q. What is the output of the code?

Code:
int main(int argc, char *argv[]) {
printf("%d", argc);
return 0;
}
  • (A) 0
  • (B) 1
  • (C) Number of arguments
  • (D) Depends on OS
  • Correct Answer - Option(C)
  • Views: 19
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

argc stores the number of command-line arguments including the program name.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.