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

Why cout is used in c++?

1026


What are the advantages of early binding?

1075


How many characters are recognized by ANSI C++?

1422


What is a v-table?

1185


What is c++ similar to?

1184


What is the difference between the parameter to a template and the parameter to a function?

1121


How can a called function determine the number of arguments that have been passed to it?

1136


Explain the difference between class and struct in c++?

1044


What is name hiding in c++?

1158


Can you overload the operator+ for short integers?

1043


Define a pointer to a data member of the type pointer to pointer?

982


Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.

1052


Is swift faster than go?

1100


What programming language should I learn first?

1101


What are the 4 types of library?

1180