#include <stdio.h>
int main()
{
char c ='a';
int n ='c'; //将c赋值给n
float f ='c'; //将c赋值给f
double d ='c'; //将c赋值给d
printf("%d\n",n);
printf("%f\n",f);
printf("%lf\n",d);
return 0;
}
int,float,double分别定义的是整型,单精度浮点型和双精度浮点型,后面不应该加单引号,加上单引号表示定义该字符