int main()
{
int a=10;
printf("%lu\n",sizeof(a));
printf("%lu\n",sizeof a);
printf("%lu\n",sizeof(1));
printf("%lu\n",sizeof 1);
printf("%lu\n",sizeof(int));
//错误写法
//printf("%lu\n",sizeof int);
return 0;
}
%lu用于输出无符号长整型数
运算结果
4
4
4
4
4