摘要:
目录一、什么是sizeof二、sizeof用法三、基本数据类型的sizeof四、复杂数据类型的sizeof及其数据对齐问题五、class类型的sizeof特别探讨六、总结一、什么是sizeof 首先看一下sizeof在msdn上的定义: The sizeof keyword gives the amount of storage, in bytes, associated with a variable or a type (including aggregate types). This keyword returns a value of type size_t. 看到return这个字眼 阅读全文