== Equality operator
exp1 == exp2 Test for exp1 equal to exp2
exp1, exp2 any expression of type int, float, char, enum, or
related type
== is a relational operator, yielding a value of either 1 (TRUE), if
the expressions have the same value; or 0 (FALSE) if the expressions
do not have the same value. Type conversion is performed as
necessary before comparing the expressions, according to the usual
arithmetic conversions. Here is an example:
if (number == guess)
...
do {
...
} while (ans == 'y');
Seealso:
This page last updated on Fri Nov 30 10:48:32 MSK 2001
Copyright © 1992-2001, Vitaly Filatov, Moscow, Russia
Webmaster