C Language Keywords - dummies

By Dan Gookin

Part of Beginning C Programming For Dummies Cheat Sheet

The C language keywords represent the core of the language. With the C11 revision to the language, several new keywords have been added. They’re shown with leading underscores in the following table:

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

Keep the following points in mind as you start programming in C:

  • Do not name any function or variable the same as a keyword.

  • You use only a few of the C language keywords in your code. Some of them, you’ll probably never use.

  • Most of the work in your code is done by functions, not by keywords.