User Tools

Site Tools


c11

Overview

TO DO

  • include_next
  • compound literals
  • variadic functions (p. 127)

Reserved C keywords

auto extern short while
break float signed _Alignas
case for sizeof _Alignof
char goto static _Atomic
const if struct _Bool
continue inline switch _Complex
default int typedef _Generic
do long union _Imaginary
double register unsigned _Noreturn
else restrict void _Static_assert
enum return volatile _Thread_local

Salient features

  • multi-threading
    • thread local
    • quick_exit()
  • anonymous structs/unions
  • type-generic functions
  • memory alignment control
  • _Noreturn function specifier
  • Unicode support
  • static assertions
  • bounds-checking functions

Types

  • long long
  • _Bool (reserved keyword)

This and that

  • declaration versus definition
  • no nested functions but can declare a function inside another one
  • wide versus multibyte characters
  • digraphs and trigraphs
  • scope:
    • file
    • block
    • prototype
    • function (includes labels)
  • alignment
    • _Alignof
    • _Alignas
  • generic selections
  • compound literals

Arrays

  • element designators

Threads

c11.txt · Last modified: 2019/06/10 11:48 by rpjday