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

Answers were Sorted based on User's Feedback



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

Answer / smikesh

Stack

Is This Answer Correct ?    9 Yes 3 No

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

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

More OOPS Interview Questions

What is an object?

14 Answers   HCL,


design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

0 Answers  


which are the 4 members functions in c++ objects that can either be declared explicitly by programmer or implementation if nt available.

4 Answers  


some one give d clear explanation for polymorphism

3 Answers  


Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


What is difference between inheritance and polymorphism?

0 Answers  


What is advantage of inheritance?

0 Answers  


Example for 4 pillar of oops like, Inheritance,Poly,Abstraction,Encabsulation ?

3 Answers  


what is overloading and overriding?

7 Answers  


How would you stop a class from class from being derived or inherited.

18 Answers   Ness Technologies,


what type of question are asked in thoughtworks pair programming round ?

0 Answers   Thought Works,


pointers are support in C#? if yes then how to use it?

8 Answers   Softvision Solution,


Categories