c - How to find the 'sizeof'(a pointer pointing to an array ...

c - How to find the 'sizeof'(a pointer pointing to an array ...

瀏覽:359
日期:2025-06-10
2009年1月29日 - int main() { int days[] = {1,2,3,4,5}; int *ptr = days; printf("%u\n", ... No, you can't. The compiler doesn't know what the pointer is pointing to....看更多