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
What is encapsulation process?
What is abstraction in oops with example?
What is the diamond problem in inheritance?
Why is oop better than procedural?
What are different oops concepts?
What is encapsulation in ict?
What is abstract class in oops?
Why is oop useful?
Why do we use oops?
What is methods in oop?
Explain the concepts involved in Object Oriented programming.
What is overriding in oops?
Why do we use oop?
What are the benefits of interface?
What is a class oop?