4 ms·
>I don't know why this got downvoted; true, I was referring to the infinite loop case, but this is a legit (if not C++-specific) case of a benefit of for over w
by flavio81 9y ago
>I don't know why this got downvoted; true, I was referring to the infinite loop case, but this is a legit (if not C++-specific) case of a benefit of for over while.
Thanks gumby.
I simply didn't catch that they were referring only to infinite loops. I though they were debating the usefulness of while versus for, in general.