char | 一个字节 | -128-127或0-255 |
int | 2或4个字节 | -32,768 到 32,767 或 -2,147,483,648 到 2,147,483,647 |
short | 2字节 | -32,768 到 32,767 |
long | 4字节 | -2,147,483,648 到 2,147,483,647 |
unsigned long | 4字节 | 0-4,294,967,295 |
#include<stdio.h>
#include<limits.h>
int main()
{
printf("int 存储大小:%lu",sizeof(int));
return 0;
}