C Tutorial Relational opereators
Introduction to C language
Integer types
Char constants
Int constants
Type combination and promotion
Int overflow
Floating point types
Comments
Variables
Assignment operator
Truncation
Int vs float arithmatic
Mathematical operators
Unary Increment Operators
Pre and Post Variations
C Programming Cleverness and Ego Issues
Relational Operators
Logical Operators
Bitwise Operators
Other Assignment Operators

 

 
 
 
 

 

HOME
 

Relational Operators

These operate on integer or floating point values and return a 0 or 1 boolean value.

 

==     Equal


 

!=     Not Equal

 

>      Greater Than

 

<      Less Than

 

>=     Greater or Equal

 

<=     Less or Equal

 

To see if x equals three, write something like:

 

if (x == 3) ...

 

 


Want more information and Video ???