Course Content
History of C Language
0/2
Basic Structure of C Program
0/1
Types of Errors
0/1
Language Fundamentals
0/1
Data Types and Modifiers
0/1
Programming with C Language
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

You cannot copy content of this page