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

Important links

  Software Drive https://drive.google.com/drive/folders/1siws7oga-10wdlPhOdcjamlDH6wm0iE_?usp=sharing PPT Drive https://drive.google.com/drive/folders/1lNHhZ4_qlsyHrWA862DyBSvkF_J4YVp8 https://docs.google.com/document/d/1fo_4gFB4sgWfTBfZvK7qf0LP0y9ge1dH/edit

React Js interview questions

 

Math notes

Supremum   math Logical math Recurrence Relation