sizeof() - C++ Forum - cplusplus.com - The C++ Resources Network

sizeof() - C++ Forum - cplusplus.com - The C++ Resources Network

瀏覽:624
日期:2024-05-11
In the case of the sizeof(list1) call, the size of list1 is known at compile-time, so sizeof() returns the byte-size of the array. In the getSizeOf() function, the size of "arr" isn't known at compile-time, so sizeof() returns the size of a pointer to dou...看更多