如题所述
整数 int
实数 float(单精度)double(双精度)
字符 char
例子如下
#include<stdio.h>
void main()
{
int a;
float b;
char c;
printf("%d,%f,%c",a,b,c);
}
实数 float(单精度)double(双精度)
字符 char
例子如下
#include<stdio.h>
void main()
{
int a;
float b;
char c;
printf("%d,%f,%c",a,b,c);
}
温馨提示:答案为网友推荐,仅供参考
第1个回答 2011-10-05
整型 用int定义
实数就是浮点型 用单精度浮点型float 双精度浮点型double
字符用char定义
实数就是浮点型 用单精度浮点型float 双精度浮点型double
字符用char定义