A

Admin • 833K 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: 22
  • Filed under category C++
  • Hashtags:

Explanation by: Admin

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.

Be the first to start discuss.