Q. What is the purpose of 'return 0;' in main()?

  • (A) Returns 0 to OS indicating successful execution
  • (B) Terminates the loop
  • (C) Closes the program
  • (D) Prints 0 to output
πŸ’¬ Discuss
βœ… Correct Answer: (A) Returns 0 to OS indicating successful execution
Explanation: 'return 0;' indicates that the program ended successfully.
Explanation by: Mr. Dubey
'return 0;' indicates that the program ended successfully.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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