Important MCQ

int i; for(i=0;i<3;i++); cout << i; prints

Q.int i; for(i=0;i<3;i++); cout << i; prints

A) 2
B) 3
C) 0
D) 12
Correct Answer:
Option B
Detailed Explanation:
B) 3 is correct. Apply the relevant C++ rules: integer versus floating-point division, remainder, operator precedence, loop execution, ternary selection, data types, and the syntax of main().