Which of the following operations do random access iterators have?
a) Prefix operator* to make available the container element for use as l-value or r-value.
b) Overloaded binary operator+ to add an int value to the iterator to move the place the iterator points forward by the argument number of elements.
c) Overloaded binary operator* to multiply the iterator by an int value to move the place the iterator points by a number of elements equal to the argument.
d) Overloaded unary operator++ to move the place the iterator points forward by one element.
e) Overloaded unary operator-- to move the place the iterator points backward by one element.
f) Overloaded operator== and operator!= to determine whether two iterators point to the same element.
All are correct except part c).
There is no binary overloaded operator* for any kind of iterator.
You might also like to view...
The character that separates tokens is known as a(n) ____________.
a. sentinel b. article c. delimiter d. separator
At a university such as MIT, information systems courses cover calculus, physics, computer architecture, chemistry, engineering, physics, computer organization, logic design, signal processing, computer architecture, and microprocessor design.
Answer the following statement true (T) or false (F)
To rely on AutoSave to automatically save a document, you must first:
What will be an ideal response?
Your solution to Exercise 4.15should have overcome the problem of dropped messages in IP multicast. In what sense does your solution differ from the definition of reliable multicast?
What will be an ideal response?