Important MCQ

Output of cout << (10 == 10); is

Q.Output of cout << (10 == 10); is

A) 0
B) TRUE
C) 1
D) 10
Correct Answer:
Option C
Detailed Explanation:
C) 1 is correct. Relational operators compare values and return true (1) or false (0). The assignment operator = is different from the equality operator ==; zero is false and non-zero values are true in conditions.