Is (a = b ) = k
undefined behavior if a,b and k are of int type and properly initialised?
thanks
Looks UB to me. a
is getting modified more than once b/w two sequence points.
The result of (a=b)
is an lvalue1 which is a reference to a
1 The result of the assignment operation is the value stored in the left operand after the assignment has taken place; the result is an lvalue ($5.17/1).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With