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

"the way it would seem to"

{} initialises all elements to 0.

{0} initialises the first element to 0 and the rest to 0.

The latter form just introduces confusion.



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

Search: