ãããªããã°ã©ã ã¯ããã : float++ 次㮠Cè¨èªã®ããã°ã©ã ãã³ã³ãã¤ã«ãã¦å®è¡ããã¨ã©ããªãã§ããããã int main () { volatile float i; for (i = 0; i < 100000000; ++i); return 0; } ãããããå¤ãã®ãã©ãããã©ã¼ã ã§ã¯ãç¡éã«ã¼ãã«ãªãã¨æãã¾ããããã¯ãIEEE754 ã®å精度浮åå°æ°ç¹ã®æå¹æ¡æ°ã24ãããã§ããã224 ãè¶
ããã¨æ°å¤ã«èª¤å·®ãå
¥ãããã§ããvolatile ãæå®ãã¦ããã®ã¯ã³ã³ãã¤ã©ã®æé©åã«ãã i ãã¬ã¸ã¹ã¿ã«å
¥ãã®ãé¿ããããã§ãã ä¸ã®ããã°ã©ã ã¯ããªãã¨ãªã float ã®æåãæ°ã«ãªã£ãããæ¸ãããã®ã§ãããããºã«çãªè¦ç´ ããããã¨æããç´¹ä»ãã¦ã¿ã¾ããã身è¿ãªããã°ã©ããããããããã®ã«ä½¿ããããããã¾ããã
{{#tags}}- {{label}}
{{/tags}}