c语言新标准相对c99有哪些变化

日期:2022-02-28 07:26:53 人气:1

c语言新标准相对c99有哪些变化

1. 对齐处理操作符 alignof,函数 aligned_alloc(),以及 头文件 <stdalign.h>。见 7.15 节。
2. _Noreturn 函数标记,类似于 gcc 的 __attribute__((noreturn))。例子:
_Noreturn void thrd_exit(int res);
3. _Generic 关键词,有点儿类似于 gcc 的 t
    A+
热门评论