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

And this is such a misconception that it's often cited as a footgun: http://www.cplusplus.com/faq/sequences/arrays/sizeof-array/

> A beginner will often try something along the lines of size = sizeof( myarray ) (which is incorrect).



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

Search: