P

Priyanka Tomar • 35.28K Points
Coach

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.
  • Correct Answer - Option(A)
  • Views: 47
  • Filed under category C++

Explanation by: Priyanka Tomar
In C++, the 'main' function is the entry point for program execution.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics