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

how to find the correct email address format by using the programe?

1 Answers   Accenture,


Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


Write a program to sort the number with different sorts in one program ??

0 Answers   NIIT,


Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku

4 Answers  


What is the difference between class and object?

4 Answers   Apple, Heinz,






Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

0 Answers  


Give two or more real cenario of virtual function and vertual object

0 Answers   TCS,


how can we design a magic square in c++?or suggest me the basic idea of it.

3 Answers  


What is abstraction oop?

0 Answers  


what is the difference b/w abstract and interface?

2 Answers   Merrill Lynch, Schneider, Scio Healthcare,


Program to check whether a word is in all capital letters

1 Answers  


Why interface is used?

0 Answers  


Categories