Important MCQ

Relational operators return

Q.Relational operators return

A) true or false (1 or 0)
B) only integers above 1
C) nothing
D) only strings
Correct Answer:
Option A
Detailed Explanation:
A) true or false (1 or 0) 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.