Equality operator

Equality operator :-

                                                           = = ( Equality Operator )in C language is used to check the value of left hand variable/expression with the right hand Variable/expression. 

Whether the two values are equal or not. It returns true if these are

equal else it will return false.

e.g. (2==3) : It means whether 2 is equal to 3 or not which is false so output is 0.

(3==3) : It mean 3 is equal to 3 ,which is true so output is 1


  C in depth book   click here

Comments