Variables

Variables

- A variable is a name of the memory location. It is used to store data. Its value can be changed, and it can be reused many times. It is a way to represent memory location through symbol so that it can be easily identified.

The example of declaring the variable is given below:

  1. int a;  
  2. float b;  
  3. char c; 
Here, a, b, c are variables. The int, float, char are the data types.

Comments