下列程序,为何错了 # include main() { int x=010,y,z=0x10; char c1='A',c2='\x41',c3='\101',# includemain(){int x=010,y,z=0x10;char c1='A',c2='\x41',c3='\101',c4,c;float f1=3.5,f2;double dl=9.8L,d2;y=100;c4=65;f2=8.9;d2=8.7L;printf("x= %d,y= %d,
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/18 15:38:32
下列程序,为何错了 # include main() { int x=010,y,z=0x10; char c1='A',c2='\x41',c3='\101',# includemain(){int x=010,y,z=0x10;char c1='A',c2='\x41',c3='\101',c4,c;float f1=3.5,f2;double dl=9.8L,d2;y=100;c4=65;f2=8.9;d2=8.7L;printf("x= %d,y= %d,
下列程序,为何错了 # include main() { int x=010,y,z=0x10; char c1='A',c2='\x41',c3='\101',
# include
main()
{
int x=010,y,z=0x10;
char c1='A',c2='\x41',c3='\101',c4,c;
float f1=3.5,f2;
double dl=9.8L,d2;
y=100;
c4=65;
f2=8.9;
d2=8.7L;
printf("x= %d,y= %d,z= %d\n",x,y,z);
printf("c1= %c,c2= %c,c3= %c,c4= %c\n",c1,c2,c3,c4);
printf("f1= %.1f,f2= %.1f\n",f1,f2);
printf("f1= %.1Lf,f2= %.1Lf\n",d1,d2);
c=c4+32;
printf("c4= %c,c= %c\n",c4,c);
}
下列程序,为何错了 # include main() { int x=010,y,z=0x10; char c1='A',c2='\x41',c3='\101',# includemain(){int x=010,y,z=0x10;char c1='A',c2='\x41',c3='\101',c4,c;float f1=3.5,f2;double dl=9.8L,d2;y=100;c4=65;f2=8.9;d2=8.7L;printf("x= %d,y= %d,
double dl=9.8L,d2;
改成double d1=9.8L,d2;