Important MCQ

The extension of a C++ source file is

Q.The extension of a C++ source file is

A) .doc
B) .txt
C) .cpp
D) .exe
Correct Answer:
Option C
Detailed Explanation:
C) .cpp 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.