See alsotype system overview andarithmetic types defined by the language.
Contents |
Defined in header <stddef.h> | |
| unsigned integer type returned by thesizeof operator (typedef)[edit] | |
| signed integer type returned when subtracting two pointers (typedef)[edit] | |
(C23) | the type of the predefined null pointer constantnullptr (typedef)[edit] |
| implementation-defined null pointer constant (macro constant)[edit] | |
(C11) | a type with alignment requirement as great as any other scalar type (typedef)[edit] |
| byte offset from the beginning of a struct type to specified member (function macro)[edit] | |
Defined in header <stdbool.h> | |
bool (C99)(removed in C23) | convenience macro, expands to_Bool (keyword macro) |
true (C99)(removed in C23) | expands to integer constant1 (macro constant) |
false (C99)(removed in C23) | expands to integer constant0 (macro constant) |
__bool_true_false_are_defined (C99)(deprecated in C23) | expands to integer constant1 (macro constant) |
Defined in header <stdalign.h> | |
alignas (C11)(removed in C23) | convenience macro, expands to keyword_Alignas (keyword macro) |
alignof (C11)(removed in C23) | convenience macro, expands to keyword_Alignof (keyword macro) |
__alignas_is_defined (C11)(removed in C23) | expands to integer constant1 (macro constant) |
__alignof_is_defined (C11)(removed in C23) | expands to integer constant1 (macro constant) |
Defined in header <stdnoreturn.h> | |
noreturn (C11)(deprecated in C23) | convenience macro, expands to_Noreturn (keyword macro) |
The type oftrue andfalse isint rather than_Bool. A program may undefine and perhaps then redefine the macrosbool,true andfalse. However, such ability is a deprecated feature. | (since C99) (until C23) |
The type oftrue andfalse isbool. It is unspecified whether any ofbool,_Bool,true, orfalse is implemented as a predefined macro. Ifbool,true, orfalse (but not_Bool) is defined as a predefined macro, a program may undefine and perhaps redefine it. | (since C23) |
Possible output:
0 1 10 22
C++ documentation forType support library |