Which of the following are correct declarations of iterators for STL containers? You may assume that the proper header has been included and that a using directive makes the names from namespace std available.
a. vector
b. list::iterator
c. deque
d. list::iterator listIterator
e. list
Parts a) c) e) are correct.
Explanation: Parts b) and d) put the template parameter in a wrong place.
Computer Science & Information Technology
You might also like to view...
The programs that control and manage the basic operations of a computer are generally referred to as ____________.
a. application software b. RAM c. system software d. output devices
Computer Science & Information Technology
Name three video file types that are suitable for Web playback.
What will be an ideal response?
Computer Science & Information Technology