02.02.2019, 16:43
m4karow already mentioned it. The size of the iterator matters. If the size in the example is 20, only numbers between 0 and 19 can be added to the iterator and any other will be ignored.
Why do you want to use an iterator and not a simple array? What is the purpose of saving money in an iterator?
Why do you want to use an iterator and not a simple array? What is the purpose of saving money in an iterator?