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

write a program that takes input in digits and display the result in words from 1 to 1000

0 Answers   Wipro,


What is the benefit of oop?

0 Answers  


Why is polymorphism important in oop?

0 Answers  


what is the advantage in software? what is the difference between the software developer and Engineer

1 Answers  


what is the difference between function template and template of function?explain with example.

2 Answers  






How oops is better than procedural?

0 Answers  


Why multiple inheritance is not possible?

0 Answers  


What are the 5 oop principles?

0 Answers  


What are the 3 pillars of oop?

0 Answers  


Why is there no multiple inheritance?

0 Answers  


What does oop mean in snapchat?

0 Answers  


what is the difference between containership and inheritence?

1 Answers  


Categories