C language

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
Conformance
Undefined behavior
Inline assembly
As-if rule
signal handling
Analyzability(C11)
.


See also

C++ documentation for C++ language constructs

© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/c/language.1

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部