Electrical and Computer Engineering
9
of 21
UAH
CPE 112
Relational Operator Examples
•
x
y
Expression
Result
•
12
2
x + 3 <= y * 10
true
•
•
•
•
•
•
Caution: The relational operator, ==, and the assignment
operator, =, are not the same.
•