Sequence Point

A sequence point defines any point in a computer program's execution at which it is guaranteed that all side effects of previous evaluations will have been performed, and no side effects from subsequent evaluations have yet been performed. They are often mentioned in reference to C and C++, because the result of some expressions can depend on the order of evaluation of their subexpressions. Adding one or more sequence points is one method of ensuring a consistent result, because this restricts the possible orders of evaluation.

With C++11, the most recent iteration of the C++ programming language, usage of the term sequence point has been replaced by specifying that either one evaluation is sequenced before another, or that two evaluations are unsequenced. The execution of unsequenced evaluations can overlap.

Read more about Sequence Point:  Examples of Ambiguity, Sequence Points in C and C++

Famous quotes containing the words sequence and/or point:

    We have defined a story as a narrative of events arranged in their time-sequence. A plot is also a narrative of events, the emphasis falling on causality. “The king died and then the queen died” is a story. “The king died, and then the queen died of grief” is a plot. The time sequence is preserved, but the sense of causality overshadows it.
    —E.M. (Edward Morgan)

    Some parents feel that if they introduce their children to alcohol gradually in the home environment, the children will learn to use alcohol in moderation. I’m not sure that’s such a good idea. First of all, alcohol is not healthy for the growing child. Second, introducing alcohol to a child suggests that you condone drinking—even to the point where you want to teach your child how to drink.
    Lawrence Balter (20th century)