| <<< C++ Fundamental Types | Index | Boolean to integer conversion >>> |
Logical operations:
int a = 2;
int b = 2;
bool is_equal = ( a == b );
Here, double equal sign operator ( a == b ) is making a decision:
( a == b ) // Is a equal to b?
The result (true in our case) is stored in boolean variable named is_equal.
| <<< C++ Fundamental Types | Index | Boolean to integer conversion >>> |