Find jobs | Company-wise jobs
Jobseekers | Employer login
About us Sitemap of www.CareerRide.com Sitemap FAQ related with www.CareerRide.com FAQ Click here to Contact us Contact
       
Submit Resume Free ! | Access Resume Free !
Home Interview Q&A Tutorials .NET Java Soft skills CV GD Work from home IT practice test MBA practice test FAQs in PDF Books Jobs FAQs
Interview questions                  
C++ interview
C interview
C test!
C++ test!
Data structure test!
C++ access control
C++ COM
C++ constructors destructors
C++ containers
C++ DCOM
C++ derived class
C++ error handling
C++ exception handling
C++ friend members
C++ inheritance
C++ inline function
C++ memory leaks
C++ namespaces
C++ new and delete
C++ operator overloading
C++ pointers
C++ references
C++ static data
C++ syntax
C++ template
C++ type checking
C++ virtual functions
C++ pure virtual functions
C++ as an object-oriented
More concept of C++
C++ data types
C++ control constructs
C++ collections
C++ functions
C++ arrays
C++ C-string
C++ classes and structure
C++ Friend functions & classes
C++ polymorphism
C++ multiple inheritance
C++ function template
C++ class templates
C++ standard stream class
ATL server
Data structure in C++
 

C++ Iterator class

Define an Iterator class.

Answer
An iterator class is used to iterate through objects of the container class. An iterator is an entity that gives access to the contents of a container object.

Define an Iterator class.

Answer
A container class hold group of objects and iterator class is used to traverse through the objects maintained by a container class. The iterator class provides access to the classes inside a container. They are objects that point to other objects. Iterator points to one element in a range, and then it is possible to increment it so that it points to the next element.

There are several different types of iterators:

input_iterator
output_iterator
forward_iterator
bidirectional_iterator
random_iterator
reverse_iterator

Explain different types of iterators, i.e. input_iterator, output_iterator etc.

Answer
Input Iterator:
These iterators can read values in the forward movement. They can be incremented, compared and dereferenced.
Ouptut Iterator: They write values in the forward movement. They can be incremented and dereferenced.
Forward Iterator: They are like input and output iterators that can read and write values in forward movement.
Bidirectional iterators: These can Read and write values with forward and backward movement and can be incremented, decremented.
random_access_iterator: Can read and write values randomly.

More Related Links

Explain container class and its types in C++.

Answer - A container stores many entities and provide sequential or direct access to them. List, vector and strings are.....

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

An internal iterator is implemented by the member functions of the class which has the iteration logic.............

What are Iterators?

Iterators are the glue that hold the container and algorithms together. They provide an abstract view of data so that the writer of algorithm need not be concerned with concrete details of a myriad of data structures.......................

What is stream iterator?

Iterators are the glue that hold the container and algorithms together. They provide an abstract view of data so that the writer of algorithm need not be concerned with concrete details of a myriad of data structures..........................

Define storage classes in C++

Answer - Storage class defined for a variable determines the accessibility and longevity of the variable. The accessibility.......

 
Want to be hunted by potential employers? Just submit your key skills!

Popular FAQs

.NET .Net Architecture ADO.NET Java Oracle C#.NET
VB.NET DOT.NET AJAX ASP.NET NET Framework OOPS in .NET
C++ Sql Server Data warehousing EJB MySQL Linux
PHP UML Networking Testing XML  
 
Copyright © 2008 - 2010 CareerRide.com. All rights reserved.