该类型是表示sizeof运算符运算结果的无符号整数类型。
1 2 3 4 5 6 7 8 9 10 11 12
/*类型size_t范例*/ #include <stdio.h> int main(void) { size_t a = sizeof(int); printf("int type: %zu bytes\n", a); return 0; }
int type: 4 bytes