the precedence of the assignment and increment operator in such a way that the result of the expression i=i++ is guaranteed. Sequence points in C and C++ In C and C++, sequence points occur in the following places. (In C++, overloaded operators act like functions, and thus operators that have been overloaded introduce sequence points in the same way as function calls.) Between evaluation of the left and right operands of the && (logical AND), || (logical OR) (as part of short-circuit evaluation), and comma operators. For example, in the expression , all side effects of the sub-expression are completed before any attempt to access . Between the evaluation of the first operand of the ternary conditional operator and its second or third operand. For example, in the expression there is a sequence point after the first , meaning it has already been incremented by the time the second instance is executed. At the end of a full expression. This category includes expression statements (such as the assignment ), return statements, the controlling expressions of , , , or - statements, and each of the three expressions in a for statement. Before a function is entered in a function call. The order in which the arguments are evaluated is not specified, but this sequence point means that all of their side effects are complete before the function is entered. In the expression , is called with a parameter of the original value of , but is incremented before entering the body of . Similarly, and are updated before entering and respectively. However, it is not specified in which order , , are executed, nor in which order , , are incremented. If the body of accesses the variables and , it might find both, neither, or just one of them to have been incremented. (The function call is not a use of the comma operator; the order of evaluation for , , and is unspecified.) At a function return, after the return value is copied into the calling context. (This sequence point is only specified in the C++ standard; it is present only implicitly in C.) At the end of an initializer; for example, after the evaluation of in the declaration . Between each declarator in each declarator sequence; for example, between the two evaluations of in . (This is not an example of the comma operator.) After each conversion