数据类型 |
字长(bit) |
最小值(MIN) |
最大值(MAX) |
signed char |
16 |
-32768 |
32767 |
char, unsigned char |
16 |
0 |
65535 |
short, signed short |
16 |
-32768 |
32767 |
unsigned short |
16 |
0 |
65535 |
int, signed int |
16 |
-32768 |
32767 |
unsigned int |
16 |
0 |
65535 |
long, signed long |
32 |
-2147483648 |
2147483647 |
unsigned long |
32 |
0 |
4294967295 |
float |
32 |
1.175494e-38 |
3.40282346e+38 |
double |
32 |
1.175494e-38 |
3.40282346e+38 |
注意2812中数据类型的字长,如char型,是16位的,这是因为2812是16位的DSP,注意与51等其他类型单片机或微控制器的区别。
文章评论(0条评论)
登录后参与讨论