Skip to main content
18 events
when toggle format what by license comment
Jan 16, 2018 at 17:39 history duplicates list edited Antti Haapala duplicates list edited from Why are these constructs using pre and post-increment undefined behavior? to Why are these constructs using pre and post-increment undefined behavior?, What are sequence points, and how do they relate to undefined behavior?, Pre- & Post Increment in C#, How are java increment statements evaluated in complex expressions
Jan 16, 2018 at 17:36 history closed Antti Haapala c Duplicate of Why are these constructs using pre and post-increment undefined behavior?
Feb 10, 2016 at 14:53 review Close votes
Feb 10, 2016 at 17:24
Apr 1, 2013 at 12:50 answer added commit timeline score: 1
Jun 23, 2011 at 19:57 history edited Nick CC BY-SA 3.0
added 63 characters in body
Jun 23, 2011 at 16:32 vote accept Nick
Jun 23, 2011 at 16:15 answer added MBCook timeline score: 1
Jun 23, 2011 at 16:15 answer added fredoverflow timeline score: 75
Jun 23, 2011 at 16:14 answer added Eric Lippert timeline score: 33
Jun 23, 2011 at 16:13 comment added Nick No need for such an expression -- just a theoretical question without a rigorous answer.
Jun 23, 2011 at 16:13 history edited Nick CC BY-SA 3.0
added 125 characters in body
Jun 23, 2011 at 16:12 comment added Marcelo Do you need an expression like that? Or did you do this experiment because you were curious about it?
Jun 23, 2011 at 16:11 comment added David Heffernan Programming is hard enough as it is without making life this hard for yourself. Why on earth would you want to write expressions like that? For the love of god, get rid of the belief that code is better if it all fits on a single line and uses as few characters as possible.
Jun 23, 2011 at 16:10 comment added Loki Astari Its well defined in the other two languages. Just not defined in C++. Do you really see ANY code in real life that looks like that? If you can not work out in your head what the answer should be for a given value of a (without running it in the compiler) then you should not write it.
Jun 23, 2011 at 16:08 answer added GWW timeline score: 4
Jun 23, 2011 at 16:06 comment added GWW I'm quite certain it is undefined behaviour to increment the same variable multiple times in a statement.
Jun 23, 2011 at 16:06 answer added Vlad timeline score: 4
Jun 23, 2011 at 16:03 history asked Nick CC BY-SA 3.0