About Lesson
Relational Operators
Relational Operators are used to compare values of two variables. These operators are used to form conditions that can yield out either true or false. Conditions are usually can be seen with selections, loops in C language.
Relational Operator |
Condition |
Meaning |
== |
x==y |
x is equal to y |
!= |
x!=y |
x is not equal to y |
< |
x<y |
x is less than y |
<= |
x<=y |
x is less than or equal to y |
> |
x>y |
x is greater than y |
>= |
x>=y |
x is greater or equal to y |