rainbowzc

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

#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个字节
 
posted on 2006-09-09 10:07  ct  阅读(792)  评论(0)    收藏  举报