This is a reference of the core C language constructs.
Basic concepts.
Comments ASCII chart Translation phases identifier - scope - lifetime lookup and name spaces type - arithmetic types objects and alignment The main function Memory model and data races.
main
Keywords.
Preprocessor.
#if - #ifdef - #ifndef #define - # - ## #include - #pragma #line - #error.
Statements.
if - switch for while - do-while continue - break goto - return.
if
switch
for
while
do
continue
break
goto
return
Expressions.
Value categories Evaluation order and sequencing Constants and literals integer constants floating constants character constants string literals compound literals(C99) Constant expressions Implicit conversions Operators member access and indirection logical - comparison arithmetic - assignment increment and decrement call, comma, ternary sizeof - alignof(C11) cast operators Operator precedence Generic selection(C11).
sizeof
alignof
Initialization.
scalar array structure/union
Declarations.
Pointers - Arrays Enumerations Storage duration and linkage const - volatile - restrict(C99) struct - union - bit fields alignas(C11) - typedef static_assert(C11) Atomic types(C11) External and tentative definitions.
alignas
typedef
Functions.
Function declaration Function definitioninline(C99) - noreturn(C11) Variadic arguments.
Miscellaneous.
History of C Inline assembly As-if rule signal handling Analyzability(C11).
C++ language constructs
Please login to continue.
Please login to continue.