Rotate image (square matrix) by 90 deg
Tue, 06 May 2025
It's undefined. Both in C & in C++.
The standard says:
So you should never do that :)
Another example is:
arr[i] = i++;
More undefined behavior: In the below example also, the values passed to the function are not defined irrespective to the value of i.
fun(arr[i], i++);
Here, the result is undefined because the order of evaluation of function arguments is undefined
Tue, 06 May 2025
Tue, 06 May 2025
Tue, 06 May 2025
Leave a comment