Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Generally variables are stored in heap memory. When he
variables are created in stack?

Answer Posted / vadivelt

It is wrong to say that genarally variables will be stored
in heap memmory.

Bcos Storage area always depends on the storage class of
the variable.

According to the C standard the storage will be.
1.variable with storage class 'auto' ie., local to the
function - in stack memory.
2.variable with storage class 'extern' and 'static' in data
segment.
3.variable with storage class 'register' in processor
register. But this register variable will be treated as
auto when there is no enough memory in the processor.

Is This Answer Correct ?    15 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the delete operator differs from the delete[]operator?

1152


Can you use the function fprintf() to display the output on the screen?

1296


What are the advantage of using register variables?

1208


Differentiate between late binding and early binding. What are the advantages of early binding?

1080


How to declare a pointer to an array of integers?

1188


Why is c++ still used?

1135


Why do we need c++?

1107


What are static variables?

1191


Why do we use classes in c++?

1114


find the two largest values among the 6 numbers using control structures : do-while,for,if else,nestedif- else ,while. one or two of them.

2607


Write a program using GUI concept for the scheduling algorithms in Operating system like SJF,FCFS etc..

3896


Explain what is polymorphism in c++?

1180


What is the best ide for c++?

1150


What is the main purpose of c++?

1107


Is it possible to get the source code back from binary file?

1432