Question: Both of statements below are about using the + + operator or - - operator when iterating over a container class object: When iterating with

Both of statements below are about using the ++ operator or -- operator when iterating over a container class object:
When iterating with the ++ operator in either the FORWARD or REVERSE direction, the iterator moves AWAY from the end of the structure that the iterator started at, and TOWARDS the OPPOSITE end of the structure.
When iterating with the -- operator in either the FORWARD or REVERSE direction, the iterator moves TOWARDS the end of the structure that the iterator started at, and AWAY from the OPPOSITE end of the structure.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!