In which memory a class gets stored(in heap /in stack)?
And why??
Answer Posted / pravin
The stack is a place in the computer memory where all the variables that are declared and initialized before runtime are stored. The heap is the section of computer memory where all the variables created or initialized at runtime are stored.
Hence,classes will be stored in heap memory.
Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
What are activex and ole?
Explain linear search.
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Describe linked list using C++ with an example.
What is decltype c++?
What is the full form of c++?
What does extern mean in a function declaration in c++?
What is the difference between C and CPP?
What is abstraction c++?
Difference between pointer to constant vs. Pointer constant
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Who invented turbo c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is c strings syntax?
Can constructor be static in c++?