Important MCQ

return 0; at the end of main() indicates

Q.return 0; at the end of main() indicates

A) an infinite loop
B) restart of program
C) successful end of program
D) an error
Correct Answer:
Option C
Detailed Explanation:
C) successful end of program is correct. A C++ program starts execution in main(). Statements normally end with semicolons; // and /*...*/ are comments, and the compiler translates source code into machine code.