doubt regarding sequence points
Posted
by tushar
on Stack Overflow
See other posts from Stack Overflow
or by tushar
Published on 2010-04-12T19:15:38Z
Indexed on
2010/04/12
19:22 UTC
Read the original article
Hit count: 221
c++
i recently came across a question about sequence points in c++ at this site what the code will output:
int c=0;
cout<<c++<<c;
it was answered that the output is undefined and << is not a sequence point but still i want to know why does it that even if i compile it 25 times it still prints 01
© Stack Overflow or respective owner