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

前端 未结 24 2216
无人及你
无人及你 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:53

    You can use variables provided by libraries such as OpenGL, Qt, etc.

    For example, Qt provides qint8 (guaranteed to be 8-bit on all platforms supported by Qt), qint16, qint32, qint64, quint8, quint16, quint32, quint64, etc.

提交回复
热议问题