Is iterator and loop are same ?

12/15/2019 2:19:13 PM

Deependra Kumar Maurya

3 Answers

New Answer


Iterators are an abstraction of pointers and they may actually be implemented as pointers and loops in some languages. Useful for traversing a sequence.


I am not sure if i understand you right. Can you please explain it a bit more in detail? And do you have any code available you could share with us? This would be very helpful.