开发者

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 type开发者_StackOverflows.

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?


Complex types are arithmetic types, but not real types.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜