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

Which is the conventional exit code for success?

Which is the conventional exit code for success?

  1. A.0
  2. B.1
  3. C.-1
  4. D.255
Answer & explanation

Correct answer: 0

0 means success; any non-zero value signals failure to the shell or calling script.

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 →