S
s0suk3
I'm a bit unclear whether a statement such as 'a = a[j];' causes
undefined behavior or some other abnormalities. A statement such as
'a = a[i++];' would definitely cause problems because of the double
use and side effect of 'i'. But in the former case, will the double
use of the array 'a' cause problems? Or will the right operand
('a[j]') of the assignment be evaluated first and then safely assigned
to the right operand ('a')?
Thanks
undefined behavior or some other abnormalities. A statement such as
'a = a[i++];' would definitely cause problems because of the double
use and side effect of 'i'. But in the former case, will the double
use of the array 'a' cause problems? Or will the right operand
('a[j]') of the assignment be evaluated first and then safely assigned
to the right operand ('a')?
Thanks