size_t是用于表示对象大小的无符号整数类型,sizeof操作符的结果就属于这种类型,诸如malloc和memcpy等接受这种类型参数明确对象大小。在系统,使用GNU C库,size_t可能是unsigned int或者unsigned long int
注意:size_t是声明任意包含对象大小的参数或变量的首选方法
This is an unsigned integer type used to represent the sizes of objects. The result of the sizeof operator is of this type, and functions such as malloc (see Unconstrained Allocation) and memcpy (see Copying Strings and Arrays) accept arguments of this type to specify object sizes. On systems using the GNU C Library, this will be unsigned int or unsigned long int.
Usage Note: size_t is the preferred way to declare any arguments or variables that hold the size of an object.