c语言中,double类型数据占( )个字节,char型数据占( )个字节

来源:百度知道 编辑:UC知道 时间:2024/05/30 14:36:30

根据各种计算机来定的。
最好的办法就在你的计算机里运行下面的程序来确定:

#include <stdio.h>
#include<conio.h>

main()
{
printf("double = %d,char = %d ",sizeof(double),sizeof(char));
getch();
}

4,1