C Keywords

Hi,
Every programming language as certain predefined words around which whole programming revolves. The meaning and definition of these words are already defined inside the compiler, so variables with same name cannot be created in the program.

In C, there are 32 keywords. The detailed discussions on their meaning and usage will be mentioned as and when they are used in coarse of programming.

Here is the list of all the keywords of C in alphabetical order.

  1. auto
  2. break
  3. case
  4. char
  5. const
  6. continue
  7. default
  8. do
  9. double
  10. else
  11. enum
  12. extern
  13. float
  14. for 
  15. goto
  16. if
  17. int
  18. long
  19. register
  20. return
  21. short
  22. signed
  23. sizeof
  24. static
  25. struct
  26. switch
  27. typedef
  28. union
  29. unsigned
  30. void
  31. volatile
  32. while
Note:  Some compiler vendors like Microsoft, Borland etc, in addition to above keywords have their own additional keywords also. By convention these vendor specific keywords needs to have their names preceded by 2 underscores (eg. __keyword ). Not every vendor follows this rule.

Next post will be regarding "Constants and Variables in C".

Till then

Happy Learning!!!

Prateek

Comments