In which memory a class gets stored(in heap /in stack)?
And why??
Answer Posted / ravi.g
Usually class will get stored when the object/s are created.
Class will get sored in stack segment when the object is
created inside the functions.
When objects are created globally they will get stored in
the data segment.
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is the use of typedef?
Difference between pass by value and pass by reference?
What is difference between array and vector in c++?
Describe the syntax of single inheritance in C++?
What is vector processing?
Is c the same as c++?
How the keyword struct is different from the keyword class in c++?
How do we balance an AVL Tree in C++?
Who created c++?
How do you save a c++ program?
What is format for defining a structure?
Array base access faster or pointer base access is faster?
Ask to write virtual base class code?
What is runtime errors c++?
How can you link a c++ program to c functions?