Why does sizeof(arr[0]) == sizeof(arr)[0] compile? – stackoverflow.com

Why does this code compile? _Static uint32_t my_arr[2]; _Static_assert(sizeof(my_arr) == 8, ""); _Static_assert(sizeof(my_arr[0]) == 4, ""); _Static_assert(sizeof(my_arr)[0] == 4, ""); The first 2 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why does sizeof(arr[0]) == sizeof(arr)[0] compile? – stackoverflow.com"