Q. What is the purpose of the 'return 0;' statement in the main function?

  • (A) Returns control to the compiler
  • (B) Indicates successful execution
  • (C) Stops program execution
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) Indicates successful execution
Explanation: 'return 0;' indicates that the program terminated successfully.
Explanation by: Mr. Dubey
'return 0;' indicates that the program terminated successfully.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
78
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
99%
Success Rate