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

The latter only adds small numbers to the small_numbers[] array.

The former preliminarily adds all numbers to the array but only keeps the small ones.

As long as you don't look at the small_numbers[smlen] element after the loop, they behave identically.



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

Search: