sequence points

J

Jrdman

hi

According to the standard these are how we define sequence points:


*the call to a function ,after the arguments have been evaluated

*the end of the first operand of the following operators :

{logical AND :&&

Logical OR :||

Conditional ?

Comma ,


}
*the end of a full declarator


*the end of a full expression:an initializer , the expresion in an
expression statement

the controlling expression of a selection statement (if or switch)

the controlling expresion of while or do statement,eatch of the
expressions of a for statement

the expression in a return statement


*Immediatly before a library function returns


*After the actions associated with eatch formatted input/output
function conversion specifier


*Immediatly before and immediatly after eatch call to a comparison
function,and between any call to a comparison function and any
movement of the objects passed as arguments to that call

can someone explain eatch one deeply?
 
B

Ben Bacarisse

Jrdman said:
According to the standard these are how we define sequence points:
can someone explain eatch one deeply?

That's asking for too much work. None of them seem particularly
confusing to me, so it would help if you said which ones are confusing
you. If it really is all of them, then you need to go back and review
some basic C terminology.
 
J

Jrdman

That's asking for too much work.  None of them seem particularly
confusing to me, so it would help if you said which ones are confusing
you.  If it really is all of them, then you need to go back and review
some basic C terminology.

Just explain what you can explain (if you want a few ones of them)
 
A

Anand Hariharan

hi

According to the standard these are how we define sequence points:
can someone explain eatch one deeply?

I know you were directed to reading the standard in the other thread, but
I now get the impression that you are probably better off reading the C
FAQ. It explains what sequence points are, how it could affect the code
you write, and gives you several examples.

http://c-faq.com/expr/seqpoints.html


- Anand
 

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

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top