Keywords - C Language Tutorial

Definition
Keywords are the words that have special meaning, which is already described to the C compiler.

Description
Following are only 32 keywords described to the C compiler. These keywords cannot be used as identifier in the program, if used compiler will raise an error 'invalid name' or 'declaration terminated incorrectly' while compiling the program. A detailed description of some main keywords is explained in further points.

  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

So remember other than these keyword names mentioned above you can use any name of variable length starting from alphabet or underscore followed by alphabets and numbers for variables, functions, arrays, pointers etc.

Thank you for sharing Your Knowledge with others who need It.-Team LetML

Post a Comment

Copyright © LetML. Blogger Templates Designed by OddThemes