Question: what is the difference between iterator and pointer?
Answer: Iterator: An iterator is any object that, pointing to some element in a range of elements (such as an array or a container), has the ability to iterate through the elements of that range. A pointer hold an address in memory. ... A pointer of type T* can point to any type T object.