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 / suneet

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 when 'extern' and 'static' are initialized stored in data segment otherwise found in bss.
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 ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which software is used to run c++ program?

1005


How many characters are recognized by ANSI C++?

1425


What are exceptions c++?

1045


Write about an iterator class?

1084


What is a tuple c++?

1014


Array base access faster or pointer base access is faster?

2307


Difference between overloaded functions and overridden functions

1060


Describe the process of creation and destruction of a derived class object?

1120


Do class declarations end with a semicolon?

1084


Is c++ the hardest programming language?

1133


What c++ library is string in?

1060


What is time h in c++?

1139


What is pointer to array in c++?

1167


How to get the current position of the file pointer?

1049


What is the exit function in c++?

989