🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: C Introduction: all 10 questions

Quiz: C Introduction · Question 4 of 10

What does return 0; in main mean?

What does return 0; in main mean?

  1. A.Print zero
  2. B.The program finished successfully
  3. C.Restart the program
  4. D.An error occurred
Answer & explanation

Correct answer: The program finished successfully

By convention 0 means success to the operating system.

Can you get the rest right without peeking?

Take the timed Quiz: C Introduction quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →