新人求教问题 - 关于指数e的输出
书本答案(程序1):
程序代码:#include <stdio.h>
int main(void)
{
printf("|%12.5e|\n", 30.253);/* Out put, "□" represent space, |□3.02530e+01| */
return 0;
}电脑(程序2):
程序代码:/* What output do the following calls of printf produce? */
#include <stdio.h>
int main(void)
{
printf("|%12.5e|\n", 30.253);/* Out put, "□" represent space, |3.02530e+001| */
return 0;
}问题?
程序1,答案输出01,在excel表格里面试,也是01。
程序2,答案输出001,这是我自己电脑的输出。
为什么数字1前面会多(少)了一个0?系统原因?(为啥)









