Sometimes in javascript you can see reverse loop like this one :
for ( let i =10; i--;) { ... }
where i get values from 9 to zero inside the loop.
the boolean evaluation of i-- is true when i > 0,
then the value of (i-1) go inside the loop,
the third argument stay empty as the decrementation of i is allready done before.
in C this should be: (?)
for (int i =10; i--;) { ... }
I'm just wondering if this could be accepted (and working) in C language?
I just want to know if it can be done or not and give an identical result to this for loop:
for (int i =9; i>=0 ;i--) { ... }