← 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?
- A.argc = 4
- B.argc = 3
- C.argc = 2
- 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 →