S
Sumeet
I met a question in a test which invoked undefined behaviour and i was
asked to answer the Expected answer of the question
Specifications := Win98 Os Tc compiler
int i=23;
i=(i++|++i)^(i++ + ++i);
what should be the value of i after this ? is there any way that i can
predict the answer ? Also i don't have a good understanding of the
Sequence points like when is the value of i incremented actually
either immediately after i++ or after the ^ operator.Please refer me
some useful links.
Also i found that the answer to this question is different if i
compiled it on gcc
asked to answer the Expected answer of the question
Specifications := Win98 Os Tc compiler
int i=23;
i=(i++|++i)^(i++ + ++i);
what should be the value of i after this ? is there any way that i can
predict the answer ? Also i don't have a good understanding of the
Sequence points like when is the value of i incremented actually
either immediately after i++ or after the ^ operator.Please refer me
some useful links.
Also i found that the answer to this question is different if i
compiled it on gcc