On Friday, 23 August 2024 at 08:58:16 UTC, Me'vâ wrote:
writeln("Result: ", i + ++i);
I would definitely expect 11 as result (but I still have K&R on my book shelf, maybe I'm a bit biased). So, when you get 12 with C, I would consider that an error.
Johann Lermer via Digitalmars-d-learn Wed, 28 Aug 2024 14:46:30 -0700
On Friday, 23 August 2024 at 08:58:16 UTC, Me'vâ wrote:
writeln("Result: ", i + ++i);
I would definitely expect 11 as result (but I still have K&R on my book shelf, maybe I'm a bit biased). So, when you get 12 with C, I would consider that an error.