Dynamic Memory
- What must be an operand of operator delete?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
The operand of delete must be a pointer returned by new.
- What will the monetary facet will do?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Handle formatting and parsing of monetary values
- Where are allocators used?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Allocators handle all the request for allocation and deallocation of memory for the container.
- Where are allocators implemented?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Allocators are implemented in C++ standard library but it is used for C++ template library.
- Which operator is used to allocate the memory?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
The default allocator uses operator new to allocate memory.