In C programming language Relational Operators are used to create logical relationship between two operands. Relational operators are used for comparison purpose. The expression having two operands and one relational operator is called relational expression.Following are the relational operators used in C programming language –
|<=||Less than and equal to|
|>=||Greater than and equal to|
|!=||not equal to|
If a = 5 & b = 2 are two integer type variables, then using relational expressions the various results will be as follows –
These operators are mostly used with if and else if statements. You will learn about if and else if statements if the further chapters.