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.

Computer Science & Information Technology

You might also like to view...

What is another name for NAT overload?

A) Dynamic Network Address Translation B) Port Address Translation C) Extensible Network Address Translation D) Private Address Translation

Computer Science & Information Technology

The CAN-SPAM Act is considered an effective means of controlling the volume of spam on the Internet.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology