Skip to main content

4.What is variable?

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
         

Comments

Post a Comment

Popular posts from this blog

What is sequential flow chart?

These types of flow chart indicates that the flow of control normally passes from one instructions to the next in a sequence with in a programme. Example :- design a flow chart to calculate addition of two number                          

React Js interview questions

 

Math notes

Supremum   math Logical math Recurrence Relation