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...
Which correctly defines the meaning of VLSM?
A) The use of more than one mask in some internetwork B) The use of one mask in an internetwork C) The use of one mask in a single classful network D) The use of more than one mask in a single classful network E) None of the above
Which types of memory chips require constant refreshing? (Select all that apply.)
A) ROM B) DRAM C) Flash D) SRAM E) Cache F) SDRAM G) DDR2 H) DDR3 I) DIMM J) SO-DIMM