Q.Grammar mistakes in a program are detected by the
A) keyboard
B) compiler
C) printer
D) monitor
Correct Answer:
Option B
Detailed Explanation:
B) compiler 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.