双11狂欢大促

盲盒赢 定制羽绒服

开启惊喜盲盒,抽取你的专属好礼

— 惊喜奖品抢先看 —

初学c,Devc++5.11 运行以下代码

cwr31 cwr31 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
看的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
请问问题出在哪里,是因为编译器还是硬件。劳烦大神指点,不胜感激!
...全文

相关推荐

评论 9
收藏 已收藏
分享
返回顶部
cwr31
C语言 70,039 成员 243,237 内容