Home » C++ Programming » Questions and Answers » Question
  1. What is the lifetime of the element in container?
    1. Only on that container
    2. Everywhere
    3. Outside the block
    4. Whole program
    5. None of these
Correct Option: A

A Container “owns” its elements: the lifetime of an element stored in a container cannot exceed that of the Container itself.



Your comments will be displayed only after manual approval.