Variables
Variables are used to store the values. it is the represent the name of the logical address.Rules Of Variable Names
- user defined.
- variable name should start in letters.
- variable names are can't start with numbers.
- variable names also start in underscore _.
syntax
data_type variable_name;
example,
int one;
from the above example,we can declare the variable named as 'one';
How to assign the values in variables?
data_type variable_name=value_of_the_variable;
example,
int one=1;
from the above example,we can assign the value 1 for the variable one;
Comments
Post a Comment