i++; increments i
i+1; doesn’t do anything
On the other hand:
i = i+1; increments i (same as i += 1;)
i = i++; has 'undefined behavior' so it may do ANYTHING
i++; increments i
i+1; doesn’t do anything
On the other hand:
i = i+1; increments i (same as i += 1;)
i = i++; has 'undefined behavior' so it may do ANYTHING