Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The C Standard defines states that modifying an object with temporary lifetime results as undefined behavior. This definition differs from the C99 Standard (which defines modifying the result of a function call or accessing it after the next sequence point as undefined behavior) because a temporary object's lifetime ends when the evaluation containing the full expression or full declarator ends, so the result of a function call can be accessed.

...