why a[i]=i++ is an UB. here the value of i has changed only once.
also i think there is no ambiguity in the value of i because in assignment operator the RHS part is evaluated and then assigned to LHS . so why this is an UB.
also i think there is no ambiguity in the value of i because in assignment operator the RHS part is evaluated and then assigned to LHS . so why this is an UB.
Comment