← Quiz: Command-Line Arguments in C: all 10 questions
Quiz: Command-Line Arguments in C · Question 3 of 10
What is always stored in argv[argc]?
What is always stored in argv[argc]?
- A.The last argument
- B.The program name
- C.NULL
- D.The value of argc
Answer & explanation
Correct answer: NULL
The array ends with a NULL pointer, which lets you loop until NULL.
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 →