初学c,Devc++5.11 运行以下代码
看的c primer plus , 照着书敲下这段代码:# include <stdio.h>
int main (void){
float aboat = 32000.0;
double abet = 2.14e9;
long double dip = 5.32e-5;
printf ("%f can be written %e\n", aboat, aboat);
printf ("And it's %a in hexadecimal, powers of 2 notation\n", aboat);
printf ("%f can be written %e\n", abet, abet);
printf ("%Lf can be written %Le\n", dip, dip);
return 0;
}
运行结果dip 值出错:0.000000 can be written 1.133023e-317
请问问题出在哪里,是因为编译器还是硬件。劳烦大神指点,不胜感激! 我直接运行出来是对的……{:10_254:}{:10_254:}
页:
[1]