DSP 平台数据类型的宽度 及与windos的区别

#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个字节
 
原文地址:https://www.cnblogs.com/rainbowzc/p/2422304.html