C27. C Equality Operators


Equality Operators
Although the relational operators are denoted by the same symbols as in many other programming languages, the equality operators have a unique appearance The “equal to” operator is two adjacent = characters, not one. since a single = character represents the assignment operator. The “not equal to” operator is also two characters: ! and =.
==  Means Equalto
!= means not equalto
Like the relational operators, the equality operators are left associative and produce either 0 (false) or I (true) as their result. However, the equality operators have lower precedence than the relational operators. 

No comments: