Size of Primitive data types

前端 未结 6 2204
旧时难觅i
旧时难觅i 2020-12-03 18:22

On what exactly does the size of a primitive data type like int depend on?

  • Compiler
  • Processor
  • Development Environment
6条回答
  •  星月不相逢
    2020-12-03 18:41

    A struct can also be POD, in which case you can explicity control potential padding between members with #pragma pack on some compilers.

提交回复
热议问题