liveBook · Manning

Sequence point

A sequence point is a point in C program evaluation at which specified preceding evaluations and side effects are complete before subsequent evaluation proceeds.

How 2 Manning books explain it

Modern C

A sequence point is a point in C program evaluation at which specified preceding evaluations are complete before subsequent evaluation proceeds.

How it is used
Clarifies how C orders evaluations while permitting optimizing compilers and unconstrained operand evaluation.
How deep it goes
Defines serialization, distinguishes it from evaluation order, and works through function-call outcomes without developing later sequencing rules.
Examples
Uses two modifying add calls inside printf to demonstrate the outputs produced by alternative evaluation orders.
What you can do after
Evaluate C expressions by separating guaranteed sequencing from an order the language leaves unspecified.

Read how Modern C explains sequence point →

Modern C, Third Edition

A sequence point is a point in C execution at which the language requires specified evaluations and side effects to be completed or ordered relative to other evaluations.

How it is used
Explains how C orders evaluations and side effects while permitting flexible expression evaluation.
How deep it goes
Defines serialization and demonstrates alternative outcomes, while deferring additional sequencing rules beyond sequence points.
Examples
Uses modifying add calls passed to printf and shows two permitted final-value outputs.
What you can do after
Evaluate which execution orders and results remain permitted when expressions are unsequenced.

Read how Modern C, Third Edition explains sequence point →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.