What are the sequence points in a full expression?

  • Thread starter lovecreatesbea...
  • Start date
L

lovecreatesbea...

---quoting---
Annex C (informative) Sequence points

1 The following are the sequence points described in 5.1.2.3:

- The end of a full expression: an initializer (6.7.8); the
expression in an expression statement (6.8.3); ...
---quoting ends---

What does a full expression exactly mean?

What are the sequence points in an initializer and in the expression in
an expression statement? Could you please make examples for these two
situations (in an initializer, and in the expression in an expression
statement)?
 
C

Cong Wang

---quoting---
Annex C (informative) Sequence points

1 The following are the sequence points described in 5.1.2.3:

- The end of a full expression: an initializer (6.7.8); the
expression in an expression statement (6.8.3); ...
---quoting ends---

What does a full expression exactly mean?

What are the sequence points in an initializer and in the expression in
an expression statement? Could you please make examples for these two
situations (in an initializer, and in the expression in an expression
statement)?

C99 6.8:
A full expression is an expression that is not part of another
expression or of a declarator.
Each of the following is a full expression: an initializer; the
expression in an expression
statement; the controlling expression of a selection statement (if or
switch); the
controlling expression of a while or do statement; each of the
(optional) expressions of
a for statement; the (optional) expression in a return statement. The
end of a full
expression is a sequence point.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top