Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Appropos of this, the idiomatic (!= obvious, sadly) way to iterate backwards over a array:

  for(size_t i=N; i-- > 0 ;) do_stuff_with(&a[i]);



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: