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

Yes, it's a multidimensional array, everything is required to be consecutively allocated. (See 6.5.2.1 for more details). `int[2][3]` is 6 integer objects consecutively allocated (as 3 arrays of 2 arrays of integers), not 3 pointers to arrays of 2 integers.


Thanks for pointing to the actual section. Good to know.




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

Search: