Important MCQ

Which is the correct main function header?

Q.Which is the correct main function header?

A) integer main()
B) int main[]
C) int main()
D) main int()
Correct Answer:
Option C
Detailed Explanation:
C) int main() is correct. A C++ program starts execution in main(). Statements normally end with semicolons; // and /*...*/ are comments, and the compiler translates source code into machine code.