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

What is always stored in argv[argc]?

What is always stored in argv[argc]?

  1. A.The last argument
  2. B.The program name
  3. C.NULL
  4. 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 →