When you define a integer it gets stored in which data
structure?(Stack or a heap)
Answers were Sorted based on User's Feedback
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 |
Who invented oop?
What does the keyword "static" mean?
Can we call a base class method without creating instance?
What are the advantages of polymorphism?
What is difference between data abstraction and encapsulation?
Why do we use class?
What is the difference between class and object?
to remove the repeated numbers from the given . i.e.., if the input is 12233 output should of 123
What is abstraction and encapsulation?
Why is encapsulation used?
What is a class in oop?
Is this job good for future? can do this job post grduate student?