来自侯金花的问题
C语言执行下列程序片段时输出结果是()执行下列程序片段时输出结果是()floatx=-1023.012;printf("n%8.3f,",x);printf("%10.3f",x);A.1023.012,-1023.012B.-1023.012,-1023.012C.1023.012,-1023.012D.-1023.012,1023.012为什么答案
C语言执行下列程序片段时输出结果是()
执行下列程序片段时输出结果是()
floatx=-1023.012;
printf("n%8.3f,",x);
printf("%10.3f",x);
A.1023.012,-1023.012
B.-1023.012,-1023.012
C.1023.012,-1023.012
D.-1023.012,1023.012
为什么答案是B,负号算一个位置吗?
1回答
2020-12-28 23:49