Q. What is the output of the code?
Code:
int main(int argc, char *argv[]) {
printf("%d", argc);
return 0;
}
β
Correct Answer: (C)
Number of arguments
Explanation: argc stores the number of command-line arguments including the program name.