Declaration Keywords
The following are some of the keywords or commands which are used to declare the variables/data names in 'C' language:- 'int': for an Integer.
- 'long': for a Long Integer.
- 'float': for a float.
- '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