What is Array based Input/Output and Array based classes in C++?

C++ supports console based, file based and array based Input/Output. Array based Input/Output is performed via  streams. To apply an array based input or output a header file <strstream> must be included.

There are three array based classes: istrstream (class derived from istream) used for creating input streams, , ostrstream (class derived from ostream) used for creating output streams, and strstream (It’s base class is iostream) used for creating both input and output streams.

Leave a Reply