简体   繁体   中英

What is the difference between “Real Types” and “Arithmetic Types” in C?

The C99 standard describes them as so:

The integer and real floating types are collectively called real types.

Integer and floating types are collectively called arithmetic types.

Does this mean they're the same thing in C? Or are there any differences between them?

复杂类型是算术类型,但不是实数类型。

From ISO C 99 6.2.5 18:

Integer and floating types are collectively called arithmetic types. Each arithmetic type belongs to one type domain: the real type domain comprises the real types, the complex type domain comprises the complex types.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM