Dynamic Memory
- Which option is best to eliminate the memory problem?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Virtual destructor means is that the object is destructed in reverse order in which it was constructed and the smart pointer will delete the object from memory when the object goes out of scope.
- What is the size of the heap?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Size of the heap memory is limited by the size of the RAM and the swap memory.
- Which is used to pass the large objects in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Because by using pass by reference we need to pass only address location, So it can save a lot of memory.
- Which is used to allocate and deallocate storage for objects during the execution?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Free store is a pool of memory available for you to allocate and deallocate storage for objects during the execution of your program.
- How can object be allocated outside the object lifetime?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
void*