🎙 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 8 of 10

How many words does the shell pass for ./show "New Delhi" 110001?

How many words does the shell pass for ./show "New Delhi" 110001?

  1. A.argc = 4
  2. B.argc = 3
  3. C.argc = 2
  4. D.argc = 5
Answer & explanation

Correct answer: argc = 3

Quoted text stays one word: ./show, New Delhi and 110001.

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 →