Comment

Comment by pickledcods

Counting down with signed ints:

  for (int i=max-1; i >= 0; --i) 
Counting down with unsigned ints (also works for signed ints):

  for (unsigned i=max; i--; )
parent pickledcods 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton