(Created page with "[https://en.wikipedia.org/wiki/Sequence_point Sequence Point] Category:Code") |
|||
Line 1: | Line 1: | ||
+ | <syntaxhighlight lang="c"> | ||
+ | int x=10, y; | ||
+ | y=x++ + ++x; | ||
+ | printf("%d %d %d %d " y, x++, x, ++x); | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | a)22,10,11,13 | ||
+ | b)22,11,11,11 | ||
+ | c)12,10,11,13 | ||
+ | d)22 13 13 13 | ||
+ | |||
+ | |||
+ | <disqus/> | ||
+ | |||
[https://en.wikipedia.org/wiki/Sequence_point Sequence Point] | [https://en.wikipedia.org/wiki/Sequence_point Sequence Point] | ||
<syntaxhighlight lang="c"> int x=10, y; y=x++ + ++x; printf("%d %d %d %d " y, x++, x, ++x); </syntaxhighlight>
a)22,10,11,13 b)22,11,11,11 c)12,10,11,13 d)22 13 13 13
<syntaxhighlight lang="c"> int x=10, y; y=x++ + ++x; printf("%d %d %d %d " y, x++, x, ++x); </syntaxhighlight>
a)22,10,11,13 b)22,11,11,11 c)12,10,11,13 d)22 13 13 13