<<< Logical AND, logical OR operators | Index | >>> |
|
void main() { int x = 1; int y = 2; if ( x == y && y > 0 ) { // execution nevert gets here... } // expr y > 0 never evaluated! if ( x == 1 || y == 2 ) { // expr y == 2 never evaluated! // ... } } |
<<< Logical AND, logical OR operators | Index | >>> |