6.15 Comma Operator6 Notes6.13 Assignment Operators6.14 Logical Expression Operators

6.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: Louis Taber, louis.taber.at.pima at gmail dot com (520) 206-6850
My web site in Cleveland, OH
The Pima Community College web site

6.15 Comma Operator6 Notes6.13 Assignment Operators6.14 Logical Expression Operators