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

What is late binding c++?

984


What is expression parser in c++

2493


What are c++ storage classes?

1092


What is token c++?

1024


Can we use pointers in c++?

1046


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

2342


What is endianness?

1093


Explain the extern storage classes in c++.

1048


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

1056


Explain the benefits of proper inheritance.

1148


Can I learn c++ without learning c?

1000


What is the use of setprecision in c++?

1010


Name the debugging methods that are used to solve problems?

1080


Why is c++ so fast?

1025


How do you define/declare constants in c++?

1045