Saved Bookmarks
| 1. |
What do we return if we use simple array on a internal container?(a) Methods(b) Pointers(c) Objects(d) ValuesThis question was addressed to me in exam.This interesting question is from Defining a New Container topic in division Class Hierarchies, Library & Containers of C++ |
|
Answer» CORRECT option is (b) Pointers Best explanation: Pointers are legal ITERATORS, so if your internal CONTAINER is a simple C ARRAY, then all you need to do is RETURN the pointers. |
|