A variable is an entity whose value can change during program execution.A variable is symbolic representation of address of the memory stress were values can be stored,excesed and changed.
Each variable has a name and datatype.All variable must have their type indicated,so that the compiler can record all the necessary information about them,generate appropriate code during allocating required space in memory.
# Rules for construction variable name:-
1 It should be a combination of alphabet,digits or under score.
2 First character must be an alphabet
3 Variable name should not be matching with reserve word in c
Example:- Employ - name
" age
Item- 4 etc
➡ A variable declaration in c is done as-type specified,separed list of separable
Ex- int,I,g,k
Each variable has a name and datatype.All variable must have their type indicated,so that the compiler can record all the necessary information about them,generate appropriate code during allocating required space in memory.
# Rules for construction variable name:-
1 It should be a combination of alphabet,digits or under score.
2 First character must be an alphabet
3 Variable name should not be matching with reserve word in c
Example:- Employ - name
" age
Item- 4 etc
➡ A variable declaration in c is done as-type specified,separed list of separable
Ex- int,I,g,k
Nice definition
ReplyDelete