Understanding the Behavior of i + ++i in D Language

Nick Treleaven nick at geany.org
Fri Aug 23 09:49:27 UTC 2024


On Friday, 23 August 2024 at 09:42:38 UTC, Nick Treleaven wrote:
> C++: undefined, could be `6 + 6` if the increment is done 
> first. g++ gives me a warning with `-Wall`:

You asked about C, for some reason I used C++. But it's the same 
in C, and the error happens with `gcc -Wall`.


More information about the Digitalmars-d-learn mailing list