What is the lifetime of the element in container?

a) Whole program
b) Outside the block
c) Everywhere
d) Only on that container

1 thought on “What is the lifetime of the element in container?”

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

Leave a Comment