CodesandTutorials
Home   Programming   Hardware   Networking
 
Next generation website theme is here (black, neon and white color) - Reduces eye strain and headache problems.  

C Categories

Keywords

« Previous Point - Constants & Variables Next Point - Data Types »

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.

  • auto
  • break
  • case
  • char
  • const
  • continue
  • default
  • do
  • double
  • else
  • enum
  • extern
  • float
  • for
  • goto
  • if
  • int
  • long
  • register
  • return
  • short
  • signed
  • sizeof
  • static
  • struct
  • switch
  • typedef
  • union
  • unsigned
  • void
  • volatile
  • 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.


« Previous Point - Constants & Variables Next Point - Data Types »

Tip Box

You can specify text to be replaced for keyword before compilation by using preprocessor directive like #define. But you cannot redefine the keywords.


Advertisement

Rate Website
   

 


Terms of Use | Privacy Policy | Contact Us
CodesandTutorials © 2014 All Rights Reserved