基本数据类型:
- byte
- short
- int
- unsigned int
- long
- long long
- unsigned long
- float
- double
- char
- char *
The size (byte) of each data type
short | int | unsigned int | long | long long | unsigned long | float | double | char | char * | |
32 bit | 2 | 4 | 4 | 4 | 8 | 4 | 4 | 8 | 1 | 4 |
64 bit | 2 | 4 | 4 | 8 | 8 | 8 | 4 | 8 | 1 | 8 |
构造类型:
- Array
- Union
- Struct
- Enum
指针类型
空类型 void
Q1:short 和 shrot int 的区别? long 和 long int的区别?
简写和全称的关系
时间: 2024-11-26 03:52:51