SyntaxFix
Write A Post
Hire A Developer
Questions
It's equivalent to
while (x-- > 0)
x-- (post decrement) is equivalent to x = x-1 so, the code transforms to:
x--
x = x-1
while(x > 0) { x = x-1; // logic } x--; // The post decrement done when x <= 0