Important MCQ

Output? int x = 7; if (x % 2) cout << "Odd";

Q.Output? int x = 7; if (x % 2) cout << "Odd";

A) Odd
B) Even
C) Nothing
D) Error
Correct Answer:
Option A
Detailed Explanation:
7 % 2 = 1 (true).