Question regarding sequence point in case of conditional operator
I have one question regarding the conditional operator.
In the draft C99 standard it is mentioned that
"1 The following are the sequence points described in 18.104.22.168:
-- 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 || (6.5.14); conditional ? (6.5.15); comma , (6.5.17)."
My question is conditional operator consist of "?" and ":" . Now
if I try to modify the value of one particular variable between "?"
and ": " will it show undefined behavior?
b = (a++)? a++: a++;
Here is the second increment of a++ will be undefined?
|All times are GMT. The time now is 04:02 AM.|
Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.