确实,tc下需要加上“L”小写。那么我需要输出long long int该加什么呢?
int main(int argc,char **argv)
{long long int *p;
long long int lfloat;
scanf("%lx",&lfloat);
p=&lfloat;
printf("lfloat is %x",lfloat);
printf("*p is %lx\n",*p);
printf("%d\n",sizeof(float));
printf("%d\n",sizeof(long long));
}
运行结果是:
1234567898765432
lfloat is 98765432*p is 98765432
8
为什么这个不输入64位?