C programming: Does float always auto-convert to double when multiplying mixed data types?

后端 未结 5 2322
感动是毒
感动是毒 2021-02-20 14:17

In Steven Prata\'s book \"C Primer Plus\", there\'s a section on Type Conversions, wherein \"The basic rules are\" section has stated in rule 1:

Under K&R C,         


        
5条回答
  •  不思量自难忘°
    2021-02-20 15:09

    Yes, there are difference versions of C, just as there are different versions of most software products.

    K&R is the original version as described by Brian Kernighan and Dennis Ritchie in their book The C Programming Language.

    The first standardized version was ANSI C, or C89 and there have been a couple of new versions since then. "Current C" can either mean C11 (the latest version) or C99 (probably the most usad version today).

提交回复
热议问题