πŸ“Š C Programming
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) Number of arguments

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

Explanation by: Mr. Dubey
argc stores the number of command-line arguments including the program name.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
68
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate