| | | 5.14 Logical Expression Operators |
5.14 Logical Expression Operators
Logical expression evaluation will stop as soon as the
final outcome is known (ANSI "C" Standard 9899 6.5). The order of the expression
evaluation is indeterminate -- most of the time.
Except as specified later (For the function call ( )
,
&&
, ||
, ?:
and the comma operators), the order
of evaluation of subexpressions and the order in which side effects
take place are both unspecified.
ANSI "C" Standard 9899 6.5.2.3 p72 paragraph 10
The order of evaluation of the function designator, the actual arguments,
and subexpressions within the actual arguments is unspecified, but there
is a sequence point before the actual call.
True is indicated by non-zero. False by zero.
ANSI "C" Standard 9899 p6.5.3.3 re: ! operator will
return a one(1) for a true condition.
&& | Logical AND |
|| | Logical OR |
! | Logical NOT |
|
Instructor: ltaber@pima.edu ** My new Home at GeoApps in Tucson ** The Pima College Site
| | | 5.14 Logical Expression Operators |