equality-expression: expression == expression expression != expression
The ==
(equal to) and !=
(not equal to)
operators are exactly analogous
to the relational operators
except for their lower precedence
(thus a<b == c<d
is 1
whenever a<b
and c<d
have the same truth-value).
Note that two lists can be compared for equality. Lists are equal only if their lengths as well as their contents are identical. Two pointers can be compared for equality. Pointers are equal only if they points to the same object.