VARIABLES IN C

Variables in C have following things:

  • It is a storage place which has some memory allocated to it.
  • It used to store some form of data.
  • It requires different amounts of memory.
  • It consists of alphabets (both upper and lower case),
  • It consists of numbers and the underscore ‘_’ character

NOTE: A variable cannot start with a number

Syntax of Variable Declaration in C:

For Single Variable

type variable_name;

For multiple variables

 type variable1_name, variable2_name, variable3_name;

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *