Dynamic Memory


  1. What must be an operand of operator delete?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The operand of delete must be a pointer returned by new.


  1. What will the monetary facet will do?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Handle formatting and parsing of monetary values



  1. Where are allocators used?











  1. 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.


  1. Where are allocators implemented?











  1. 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.



  1. Which operator is used to allocate the memory?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The default allocator uses operator new to allocate memory.