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

sizeof(a) is sizeof(int*) in your example because of the C standard: That is to say this is a bug in the standard, and not a bug in any particular compiler.


Yes, but why does the standard have that bug?


Probably because the compilers that were standardized had that bug.




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

Search: