4 ms·
This is just a very particular case of calling a function with such arguments that the result will depend on the order of evaluation for the arguments. This is
by adrian_b 5y ago
This is just a very particular case of calling a function with such arguments that the result will depend on the order of evaluation for the arguments.
This is an undefined operation in almost all programming languages.
- Aeolos 5y agoThat is not actually the case, a great many languages define the order of operations in a deterministic manner. There is no intrinsic reason why a[i] = i++ has to result in undefined behavior.