← Quiz: Command-Line Arguments in C: all 10 questions
Quiz: Command-Line Arguments in C · Question 1 of 10
A program is run as ./calc 5 + 7. What is argc?
A program is run as ./calc 5 + 7. What is argc?
- A.3
- B.4
- C.5
- D.2
Answer & explanation
Correct answer: 4
The words are ./calc, 5, + and 7 — the program name is counted too.
Can you get the rest right without peeking?
Take the timed Quiz: Command-Line Arguments in C quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →