What is the difference between an external iterator and an internal iterator?
Answer / Anjali Devi
"External iterators are a type of iterator that operates on containers outside of their implementation, allowing them to be used with different types of data structures without requiring changes to the code. They have access only to the container's elements and no knowledge of its internal representation.nnInternal iterators, on the other hand, are a type of iterator that has direct access to the container's implementation details, such as pointers or references to the container's data structure. This can lead to more efficient iteration but also means they are not portable across different container types."
| Is This Answer Correct ? | 0 Yes | 0 No |
What does the nocreate and noreplace flag ensure when they are used for opening a file?
What does iomanip mean in c++?
Explain the need for "Virtual Destructor"?
What is operators in c++?
What is an Iterator class?
What is do..while loops structure?
What you mean by early binding and late binding? How it is related to dynamic binding?
What is c++ mutable?
How would you stop a class from class from being derived or inherited?The constructer should not be Private,as object instantiation should be allowed.
Define whitespace in C++.
What is the difference between a declaration and a definition?
Where must the declaration of a friend function appear?