Q. What is the purpose of the 'main' function in C++?

  • (A) It is the entry point for program execution.
  • (B) It is used for error handling.
  • (C) It defines the program's logic.
  • (D) It is used to define global variables.
πŸ’¬ Discuss
βœ… Correct Answer: (A) It is the entry point for program execution.
Explanation: In C++, the 'main' function is the entry point for program execution.
Explanation by: Priyanka Tomar
In C++, the 'main' function is the entry point for program execution.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
123
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Priyanka Tomar
Publisher
πŸ“ˆ
97%
Success Rate