# C language

> C++ Atlas: `cppatlas.com/w/c/language` | Source: https://en.cppreference.com/w/c/language | Domain: Language | Standards: C99, C11, C23

This is a reference of the core C language constructs.

## Official Specification Summary (cppreference)

This is a reference of the core C language constructs.

|   |   |   |
| --- | --- | --- |
| **Basic concepts** Comments ASCII chart Character sets and encodings Translation phases Punctuation Identifier - Scope - Lifetime Lookup and Name Spaces Type - Arithmetic types Objects and Alignment The `main` function As-if rule Undefined behavior Memory model and Data races **Keywords** **Preprocessor** `#if` - `#ifdef` - `#ifndef` - `#elif` `#elifdef` - `#elifndef` (C23) `#define` - `#` - `##` `#include` - `#pragma` `#line` - `#error` `#warning` (C23) - `#embed` (C23) **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 `true`/`false` (C23) `nullptr` (C23) 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 Attributes (C23) **Functions** Function declaration Function definition `inline` (C99) `_Noreturn` (C11) (deprecated in C23) Variadic arguments **Miscellaneous** History of C Conformance Inline assembly Signal handling Analyzability (C11) |

### See also

- [C++ documentation for C++ language constructs](https://en.cppreference.com/w/cpp/language)

---
Attribution: content from https://en.cppreference.com/w/c/language (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.