Important MCQ

Output of cout << (5 > 3 && 2 > 4); is

Q.Output of cout << (5 > 3 && 2 > 4); is

A) 1
B) 0
C) 5
D) 2
Correct Answer:
Option B
Detailed Explanation:
B) 0 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().