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
explain sub-type and sub class? atleast u have differ it into 4 points?
How oops is better than procedural?
write a C++ program for booking using constructor and destructor.
Why do we use class in oops?
Why is object oriented programming so hard?
What is polymorphism and types?
When not to use object oriented programming?
What is persistence in oop?
hi all..i want to know oops concepts clearly can any1 explain??
write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.
What are the important components of cohesion?
what are the realtime excercises in C++?
What is encapsulation and abstraction? How are they implemented in C++?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Why do we use polymorphism in oops?