🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.3
  2. B.4
  3. C.5
  4. 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 →