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 cohesion in oop?

1 Answers  


What do you mean by overloading?

1 Answers  


what is graphics

1 Answers  


What is protected in oop?

1 Answers  


What is a class oop?

1 Answers  


can we create and enter the data & hide files using programmes ?

2 Answers   Wipro,


What is multilevel inheritance?

1 Answers  


why the argument is passed by reference to a copy constructor?example?

2 Answers  


Program to check whether a word is the first word of the sentence.

1 Answers  


What is polymorphism in oops?

1 Answers  


What is overloading in oop?

1 Answers  


what is polymorpsim? what are its types?

8 Answers  


Categories