History and evolution of computer

What is Variable? syntax of variable, Initialization.

 

What is Variable?

  • A name which can store a value. in other words, A variable is a container which can store a value and we can re-use that value using of variable.

  • Variable Declaration and Initialization

Syntax of variable :

type         variable name;                    example: int a, b;

Initialization:

a = 10;
b = 20; 

Comments