Sunday, April 17, 2011

26)Order of Evaluation

Order of Evaluation is most operators do not guarantee a particular order of evaluation for their operands. If an operator does, we mention that fact in its description below. In the absence of such a guarantee, the compiler may rearrange calculations within a single expression as it wishes, if the result would be unchanged ignoring any possible side effects.For example, if an expression assigns a value to a variable and uses the variable in the same expression, the result is undefined unless an operator that guarantees order of evaluation occurs at an appropriate point.
Got Answer From: http://www.lugaru.com/man/Order.of.Evaluation.html

No comments:

Post a Comment