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 encapsulation process?

1052


What is abstraction in oops with example?

1293


What is the diamond problem in inheritance?

1138


Why is oop better than procedural?

1082


What are different oops concepts?

1061


What is encapsulation in ict?

1060


What is abstract class in oops?

1026


Why is oop useful?

1108


Why do we use oops?

1018


What is methods in oop?

981


Explain the concepts involved in Object Oriented programming.

1242


What is overriding in oops?

1108


Why do we use oop?

1101


What are the benefits of interface?

1061


What is a class oop?

1009