Friday, 14 February 2014

Declaration Keywords

The following are some of the keywords or commands which are used to declare the variables/data names in 'C' language:
  1. 'int': for an Integer.
  2. 'long': for a Long Integer.
  3. 'float': for a float.
  4. 'char': for a character or a string(array of character data type).
NOTE: While using 'char' for a string one must write the limit of the characters used to form string inside a square bracket"[]".
           For ex: char nm[32] , In this example we took an array of 32 characters inside the data type string(character)

No comments:

Post a Comment