c语言中最简单的数据类型包括什么

如题所述

整型,实型,字符型.
温馨提示:答案为网友推荐,仅供参考
第1个回答  2006-08-07
其实在不同的机器上数据类型占内寸量不同
如在64位机器上int占8字节,在32位机器上是4字节
你想知道的话可以用:
sizeof(数据类型)

比如你想知道双精度浮点数的字节数,可以:
#include<iostream>
using namespace std ;
int main()
{
cout << sizeof(double) << endl ;
system(\"pause\") ;
}本回答被网友采纳
第2个回答  2006-07-30
C 语言的数据类型都是简单的:

int
unsigned int
short
unsigned short
long
unsigned long
char
unsigned char
float
double
第3个回答  2006-07-30
int 2字节 整型
long 4字节 长整型
char 1字节 字符型
float 4字节 浮点型
加我QQ:3827636
我详细介绍给你听!
第4个回答  2006-07-30
int 2字节 整型
long 4字节 长整型
char 1字节 字符型
float 4字节 浮点型