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

Math notes

Supremum   math Logical math Recurrence Relation  

Dairy 20/05/2025

Abhi Raat ke 11:26 ho rha hai aur mai Aaj ka pura din ka diary likhne ja rha hu. Aaj Mera MCA ka last din tha aur mere liye sbse khusi ki baat thi ki ess moment pe mere papa bhi mere sath the. Aaj unka 11::45 pm pe train hai to wo chle jaenge. Aaj Subah jagte hi papa se mile aur mera din ka suruwat hi bhut acha huaa. Mai aur Papa Nasta sath me kiye aur fir mai apne Major project external viva exam ke liye gya college waha pe sir mere se phle normally talk kiye. Jaise hi mai exam ke room me enter Kiya to Maine sir se kaha sir  maine internship applore technology se ki hai fir sir se mere se puchhe ki Delhi me kaha rhte ho aur company noida hai to noida hi shift ho jate maine kaha sir hmara Jims me June hai esliye abhi nhi shift kar paya fir unhone Jims hostel ke khane ke bare me puchha ki quality kya hai maine kaha shi hai sub and then project ke bare me sequence diagram ke bare me puchhe maine ans kiya fir sir bole ki tumhare project ke according AI kaise therapy kar skta hai to ma...

React Js interview questions