Important MCQ

Every C++ program starts execution from

Q.Every C++ program starts execution from

A) cout
B) main()
C) return
D) #include
Correct Answer:
Option B
Detailed Explanation:
B) 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.