Reserved Keywords

Storage Duration and Storage Type Modifier

  • auto
  • const
  • extern
  • register -- deprecated
  • static
  • thread_local
  • volatile

Flow Control

  • break
  • case
  • continue
  • default
  • do
  • else
  • if
  • for
  • goto
  • return
  • switch
  • while

Basic Type System

  • char
  • double
  • float
  • int
  • long
  • short
  • signed
  • unsigned
  • void

Custom Type System

  • enum
  • union
  • struct

Type System Helper

  • alignas
  • alignof
  • sizeof
  • typedef

Naming Rules Enforced by the Compiler

  • Variable and function names must follow this reg-exp: [A-Za-z_][A-Za-z0-9_]+
  • Names must start with a letter. Numbers are not allowed.
  • Keywords cannot be used as variable or function names.
  • Names which start or end with "_" (underscore) are reserved for the compiler.
Zuletzt geändert: Freitag, 25. Mai 2018, 12:45