C language

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
.

Keywords.

Preprocessor.

#if - #ifdef - #ifndef
#define - # - ##
#include - #pragma
#line - #error
.

Statements.

if - switch
for
while - do-while
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)
.

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
.

Functions.

Function declaration
Function definition
inline(C99) - noreturn(C11)
Variadic arguments
.

Miscellaneous.

History of C
Inline assembly
As-if rule
signal handling
Analyzability(C11)
.


See also

C++ documentation for C++ language constructs
doc_C_Language
2016-10-10 18:34:45
Comments
Leave a Comment

Please login to continue.