2.12 Precedence and Order of Evaluation
- C does not specified the order of operands of an operator are evaluated. (exception ?: etc)
- C does not specified the order of function arguments are evaluated
- Function calls, nested assignment statements, and increment and decrement operators cause " side effects" - some variables are changed as a by-product of the evaluation of an expression
- ie. a[i] = i++; ( subscript is the old or new value of i? Different compliers, generate different answers, depending on machine architecture)
No comments:
Post a Comment