资 源 简 介
如何计算结构体的大小运算符sizeof可以计算出给定类型的大小,对于32位系统来说,sizeof(char) = 1 sizeof(int) = 4。基本数据类型的大小很好计算,我们来看一下如何计算构造数据类型的大小。
-How to calculate the structure of the size of the sizeof operator can calculate the size of a given type, for a 32-bit systems that, sizeof (char) = 1 sizeof (int) = 4. Basic data types of the size of the fine calculation, we take a look at how to calculate the structure data type size.