Which of the following statements about the main() function in a standard C/C++ program is correct?

Options

  • A. main() is normally the starting point of program execution.
  • B. main() must always return a string.
  • C. main() can never have a return type.
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

A. main() is normally the starting point of program execution.

Detailed Explanation

Answer: (A) main() is normally the starting point of program execution.

The main() function is the entry point of a normal C or C++ program. Program execution begins from the main function.

A common standard form is int main() or int main(void) in C. The return type is int, which allows the program to return a status value to the operating system.

Therefore, the statement that main() is normally the starting point of program execution is correct.