Next: Primitive Types, Previous: Binary Operator Grammar, Up: Top [Contents][Index]
The order of execution of a C program is not always obvious, and not necessarily predictable. This chapter describes what you can count on.
|• Reordering of Operands||Operations in C are not necessarily computed in the order they are written.|
|• Associativity and Ordering||Some associative operations are performed in a particular order; others are not.|
|• Sequence Points||Some guarantees about the order of operations.|
|• Postincrement and Ordering||Ambiguous excution order with postincrement.|
|• Ordering of Operands||Evaluation order of operands and function arguments.|
|• Optimization and Ordering||Compiler optimizations can reorder operations only if it has no impact on program results.|