What does the C++ standard state the size of int, long type to be?

前端 未结 24 2206
无人及你
无人及你 2020-11-21 04:42

I\'m looking for detailed information regarding the size of basic C++ types. I know that it depends on the architecture (16 bits, 32 bits, 64 bits) and the compiler.

24条回答
  •  悲&欢浪女
    2020-11-21 04:47

    As you mentioned - it largely depends upon the compiler and the platform. For this, check the ANSI standard, http://home.att.net/~jackklein/c/inttypes.html

    Here is the one for the Microsoft compiler: Data Type Ranges.

提交回复
热议问题