int ,long long int 数据范围

在编译器上输入printf("%d",sizeof(类型));

例如

     printf("%d",sizeof(int));

     无论32位机还是64都是4字节,也就是4*8bits(位) ;

     也就是-2^32~2^32-1(除去0,要减1)

 至于long long int知道方法自己尝试吧。

猜你喜欢

转载自blog.csdn.net/qq_41603898/article/details/80315576
今日推荐