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
Do you know about multiple inheritance?
What is encapsulation process?
What is the types of inheritance?
Why do we use encapsulation in oops?
Can private class be inherited?
What is polymorphism used for?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What polymorphism means?
Can you name some types of inheritance?
c++ program to swap the objects of two different classes
What is object in oop with example?
What is the purpose of polymorphism?
What are the three parts of a simple empty class?
Where You Can Use Interface in your Project
What is the difference between encapsulation and polymorphism?