in Programming in C retagged by
596 views
1 vote
1 vote

What are sequence Points ....?

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. A sequence point is a point in program execution at which all side effects are evaluated before going on to the next step

               -sounce : Wikipedia 

Q ] Please show a working example and explain the statement . Not able to understand the lines correctly .
Q ] Could introduction Sequence Points in code solve the problem of undefined behaviour  of the following statement ? If so explain how it is done 

printf("%d , %d , %d ",i++,i,++i);

  

in Programming in C retagged by
by
596 views

1 comment

2
2

Please log in or register to answer this question.

Related questions