标签: c
输出应为10和40(考虑sizeof(int)= 4),但是在打印时, sizeof(arr)是4。为什么会这样?我在下面留下了我的代码的屏幕截图。
int n = 10, *arr; arr = ( int * ) malloc ( sizeof(int) * n );