Skip to the content of the web site.

Lesson 301a: A reduced set of keywords

Previous lesson Next lesson


To date, the C++ programming language has fifty-two (52) keywords, while the set of keywords for C is significantly reduced: there are only thirty-four (34):

auto      break     case      char      const     continue  default   
do        double    else      enum      extern    float     for       
goto      if        inline    int       long      register  restrict
return    short     signed    sizeof    static    struct    switch
typedef   union     unsigned  void      volatile  while

Two of these, inline and restrict, were only introduced in the 1999 C Standard (C99).


Previous lesson Next lesson