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 the benefit of oop?

0 Answers  


When is it necessary to use member-wise initialization list in C++?

2 Answers   Adobe,


What is a template?

7 Answers  


What is the outcome of the line of code "cout<<abs(- 16.5);"? 1) 16 2) 17 3) 16.5

16 Answers   TCS,


How do you achieve runtime polymorphism?

0 Answers  


what is the application of oops?

8 Answers   IBM,


In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance

1 Answers  


What is constructor in oop?

0 Answers  


What is abstraction and encapsulation?

0 Answers  


Write A Program using Single and Multiple Inheritance.

1 Answers  


What is an object?

14 Answers   HCL,


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


Categories