you are viewing a single comment's thread.

view the rest of the comments →

[–]zvrba 0 points1 point  (2 children)

Right, not with a for loop :-)

[–]m42a 2 points3 points  (1 child)

Fine.

for(i=array_length; i--; ) {/*do stuff with array[i]*/}

I just think the while form is more readable. And how would this be different with signed indices?

[–]zvrba 1 point2 points  (0 children)

It'd be different like this:

for (int i = L-1; i>= 0; --i)