Examveda

Which of the following is an advantage of Forward iterator over input and output iterator?

A. Can be used as both accessing and assigning iterator

B. Forward iterator can be incremented or decremented

C. Can be used with relational operators also

D. Can be used with arithmetic operators also

Answer: Option A


Join The Discussion

Related Questions on C plus plus miscellaneous

What is the difference between '++i' and 'i++' in C++?

A. None of the above

B. They both have the same effect

C. '++i' increments the value of 'i' before returning it, while 'i++' increments the value of 'i' after returning it

D. '++i' increments the value of 'i' after returning it, while 'i++' increments the value of 'i' before returning it