Multiple choice

The entry point of C++ program is

  1. the first line of the class

  2. the main function

  3. the first executable method of the class

  4. none of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In C++, the main() function is the designated entry point where program execution begins. The first line of a class is not executable code itself, and 'first executable method' is ambiguous since main() is a global function, not a class method.