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 difference between an array and a list?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
How many types of scopes are there in c++?
How do you sort a sort function in c++ to sort in descending order?
Explain what happens when a pointer is deleted twice?
What is one dimensional array in c++?
Which software is used to run c++ program?
Which is the best c++ compiler for beginners?
What is vector pair in c++?
What language does google use?
What is the latest version on c++?
How many types of comments are there in c++?
Explain the concept of memory leak?
What is the use of endl in c++ give an example?
Explain mutable storage class specifier.