i have found the following expression in C
According to the book it is undefined behavior but little confused why it is so. My interpretation would be something like thisCode:a[i] = i++;
a. the expression on the right will be evaluated first that is i,
b. then it would be assigned to a[i],
c. then i will be incremented.
What is that i am missing here? Why is it not correct way of writing?