Important MCQ

Output? int x = 1, y = 1; if (x == 1) if (y == 2) cout << "A"; else cout << "B";

Q.Output? int x = 1, y = 1; if (x == 1) if (y == 2) cout << "A"; else cout << "B";

A) A
B) B
C) AB
D) Nothing
Correct Answer:
Option B