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

前端 未结 24 2337
无人及你
无人及你 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 05:06

    There are four types of integers based on size:

    • short integer: 2 byte
    • long integer: 4 byte
    • long long integer: 8 byte
    • integer: depends upon the compiler (16 bit, 32 bit, or 64 bit)

提交回复
热议问题