i is DEcremented, not INcremented. So i will= -1, -2, -3...etc until it passes -20.
Printable View
There are four so far... anyone want to see them
for (i=0; i+n; i--)
for (i=0; i<n; n--)
for (i=0;-i<n; i--)
for (i=0;~i<n; i--)
Neat question, not a very good introduction. Once someone finds three, they think they are a genius. Did someone find another?
By the way, the unary NOT is replacing a space (" ") just like the negative symbol
My bad, dumb, should've read the posts about the unary operator. Silly oversight, great problem for the class.
What's wrong with this one?
for (i=40; i<n; i--)
I'm not trying to be a smart ***, but this is not insertion?
for (i=0;-i<n; i--)
Or in this case, we substitute default-hidden '+' ?
Don't mean to show off but it took maybe 20 seconds. I can't imagine no one has got that on his quiz or whatever since 1999 that's absurd.