Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

Anyone ever heard of the arrow operator in C? The following code counts down from i-1 to 0 #include main() { int i = 10; while (i --> 0) printf("%d\n", i); return 0; }

OpenStudy (asnaseer):

this is not an arrow operator, it is a post decrement of i followed by a comparison, i.e.: i-->0 means "i--">0 this means check if i is greater than zero first, then decrement it.

OpenStudy (stormfire1):

Yep, it's a post-decrement and then a comparison

OpenStudy (anonymous):

:( it was a joke

OpenStudy (stormfire1):

The joke is on me then for answering :(

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!