What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator.

An internal iterator is working on stp by step, Its implemented with member functions of the class .An external iterator is implemented as a separate class that can be "attach" to the object that has items to step through. 
An external iterator has the advantage : 
> that many difference iterators can be active simultaneously on the same object. 

By:Umang
Date:2006-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher