Undoc'd Feature?
|
07-09-2022, 05:10 PM
Post: #23
|
|||
|
|||
RE: Undoc'd Feature?
(07-09-2022 12:20 PM)RPNerd Wrote: I would contend that the Microsoft compiler is wrong and the others are correct. There is no right or wrong. With Undefined Behavior, Anything is Possible Your reasoning suggested {a=a++;} ≡ {t=a; a++; a=t;}, with a unchanged. But, another way to look at this: {a=a; a++;} will have a incremented. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)