当前位置: C语言 -- 标准库 -- <uchar.h> -- size_t

size_t类型


描述:

该类型是表示sizeof运算符运算结果的无符号整数类型。


范例:
1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
/*类型size_t范例*/

#include <stdio.h>
#include <uchar.h>

int main(void)
{
    size_t length;
    length = sizeof(char32_t);
    printf("char32_t type: %zu\n", length);
    
    return 0;
}


输出:

char32_t type: 4

:使用Visual Studio编译。


相关内容:
char16_t 用于16位字符的无符号整数类型。
char32_t 用于32位字符的无符号整数类型。