Not quite. It decrements then performs the comparison with the non decremented value. The decrement always happens before the comparison, but whether it compares with the current or previous value of x depends on the use of prefix or postfix decrement.
View all comments
Show parent comment
3
u/tangerinelion Feb 21 '20
Not quite. It decrements then performs the comparison with the non decremented value. The decrement always happens before the comparison, but whether it compares with the current or previous value of x depends on the use of prefix or postfix decrement.