#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个字节
 

相关文章:

  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-12-03
  • 2021-05-16
  • 2022-01-28
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-07-07
  • 2021-05-06
相关资源
相似解决方案