size_t unsigned integerResult of sizeof operator. STDDEF.H and other include files
size_t其实是一种类型,类似于无符号整形(unsignted int)你说的size_t size,你可以理解成unsignted int size;你当unsignted int用就可以了。size_t一般用于指明数一个组长度,所以必然是个正数。它有足够大的大小来储存可能的最大数组。比如我要将下标赋值给数组a[array_size]的每个元素: const size_t array_size=10;int a[array_size-1];for(size_t i=0;i<size_t;++i )a[i]=i;说到底,size_t 当unsigned int用好了。