// 谁能帮我注释下,留言即可,thanks!
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
int main(void)
{
int a[4];
printf("%d\n", sizeof(a)); //16
printf("%d\n", sizeof(int [4])); //16
printf("%d\n", sizeof(int * [4])); //16
printf("%d\n", sizeof(int (*) [4])); //4
printf("%d\n", sizeof(int (*))); //4
printf("\n");
system("pause");
return 0;
}
C语言 - sizeof() 各种返回值 实例讲解
最新推荐文章于 2024-07-24 17:24:57 发布