C Language

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

C language

This is a reference of the core C language constructs.

Basic concepts Expressions Declarations

Comments
Value categories
Pointers -
Arrays

ASCII chart
Evaluation order and sequencing
Enumerations

Character sets
Constants and literals
Storage duration and Linkage

Translation phases
  Integer constants
const - volatile - restrict(C99)

Punctuation
  Floating constants
struct - union -
Bit fields

Identifier -
Scope -
Lifetime
  Character constants
_Alignas(C11) -
typedef

Lookup and Name Spaces


  true/false(C23)
_Static_assert(C11)

Type - Arithmetic types


  nullptr(C23)
Atomic types(C11)

Objects and Alignment


  String literals
External and tentative definitions

The main function


  Compound literals(C99)
Attributes(C23)

As-if rule
Constant expressions

Undefined behavior
Implicit conversions
Functions
Memory model and Data races
Operators

  Member access and indirection


Function declaration

Keywords   Logical -
Comparison
Function definition

  Arithmetic -
Assignment
inline(C99)

Preprocessor   Increment and Decrement


_Noreturn(C11)(deprecated in C23)

  Call, Comma, Ternary


Variadic arguments

#if - #ifdef - #ifndef - #elif


  sizeof - _Alignof(C11)

#elifdef - #elifndef(C23)
  Cast operators
Miscellaneous
#define - # - ##
Operator precedence

#include -
#pragma
Generic selection(C11)
History of C

#line -
#error
Conformance

#warning(C23) Initialization Inline assembly

Signal handling

Statements Scalar
Analyzability(C11)

Array

if -
switch
Structure/Union

for

while - do-while

continue -
break

goto -
return

See also

C++ documentation for C++ language constructs

Retrieved from "https://en.cppreference.com/mwiki/index.php?title=c/language&oldid=142134"

You might also like