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...

When you define a integer it gets stored in which data
structure?(Stack or a heap)

Answer Posted / shyam

Depends on where the integer is declared. If it s declared in a block it goes into stack.

If it s an static or global variable, it will not be stored in stack. It ll be stored in data segment of the running program.

Integer will never be stored in heap... never...

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the real life example of polymorphism?

1111


What is inheritance and how many types of inheritance?

1037


What is inheritance in oop?

981


How do you use inheritance in unity?

1024


What do you mean by abstraction?

1022


What is new keyword in oops?

992


What is the important feature of inheritance?

1065


What is and I oop mean?

1105


What is polymorphism programming?

1068


What is persistence in oop?

1093


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1809


What is balance factor?

1017


What is a null tree?

1077


What is abstraction in oops?

977


what is graphics

2402