0% found this document useful (0 votes)
78 views1 page

Relational Operator

Relational operators check the relationship between two operands and return 1 if the relation is true or 0 if false. Examples of relational operators include > for greater than, < for less than, == for equal to, and != for not equal to. Relational operators are used to make decisions and in loops in C programming.

Uploaded by

slspa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views1 page

Relational Operator

Relational operators check the relationship between two operands and return 1 if the relation is true or 0 if false. Examples of relational operators include > for greater than, < for less than, == for equal to, and != for not equal to. Relational operators are used to make decisions and in loops in C programming.

Uploaded by

slspa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Relational Operator

Relational operators check` relationship between two operands. If the relation is true, it returns value 1 and if
the relation is false, it returns value 0. For example:
a>b

Here, > is a relational operator. If a is greater than b, a>b returns 1 if not then, it returns 0.
Relational operators are used in decision making and loops in C programming.

Operator

Meaning of Operator

Example

==

Equal to

5==3 returns false (0)

>

Greater than

5>3 returns true (1)

<

Less than

5<3 returns false (0)

!=

Not equal to

5!=3 returns true(1)

>=

Greater than or equal to

5>=3 returns true (1)

<=

Less than or equal to

5<=3 return false (0)

You might also like