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::iterator vecIterator;
b. list::iterator listIterator;
c. deque::iterator dequeIterator;
d. list::iterator listIterator;
e. list::iterator listIterator;


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 shortcut key ________ can be used to copy text

Fill in the blank(s) with correct word

Computer Science & Information Technology

The right-pointing arrow displays the previous slide or animation

Indicate whether the statement is true or false

Computer Science & Information Technology

When viewed in binary, what value is always on the far left in the first octet of a Class A address?

A. 00 B. 10 C. 110 D. 0

Computer Science & Information Technology

____ could set up an email account for you.

A. Your employer B. A slide transition C. A Smart Guide D. Windows Explorer

Computer Science & Information Technology