Wednesday, 20 August 2014

Equality operator

Equality operator :  this operator works upon two operand.


11)      (==) operator.
Return value:   true (1)  // when both operand are equal
                           False(0)  // when both are not equal
int a=5,b=6;
a==b;  // will return 0.

22)      (!=) operator.
Return value:  true(1)   // when both operands are not equal.
                           False(0)  // when both are equal.

a!=b    //will return 1.

No comments:

Post a Comment