#include <stdio.h>
main()
{printf("下面输出DSP数据类型的长度/n");
printf("int type length=%d/n",sizeof(int));
printf("float type length=%d/n",sizeof(float));
printf("char type length=%d/n",sizeof(char));
printf("short type length=%d/n",sizeof(short));
printf("long type length=%d/n",sizeof(long));
printf("double type length=%d/n",sizeof(double));} 输出结果如下:
下面输出DSP 数据类型的长度int type length=4 float type length=4 char type length=1 short type length=2 long type length=8 double type length=8 ////////////////////////////////// windows 平台的结果
int type length=4
float type length=4
char type length=1
short type length=2
long type length=4
double type length=8
_int64 type length=8
Press any key to continue在windows 平台里边存在一种很特殊的类型 long long 和_int64 8个字节