concept of variable as small post box |
1.First Letter Character
2.Underscore _ (Not Recommended)
3.Can’t use real numbers (Syntax Error)
int num1;
Variable is the name of a location in the memory
e.g. x= 2;
e.g. x= 2;
how variable stores in a memory |
In a program a variable has:
i.e int x = 2;
float y = 3.6
Assignment
Operator
=
x=2