Predefined Stream Objects in I/O Library

Q9. What are the predefined stream objects in I/O library?

Ans. The predefined stream objects for input, output and error are given below:

  1. cin – It is an istream (input stream) class object tied to standard input.
  2. cout – It is an ostream (output stream) class object tied to standard output.
  3. cerr – It is an ostream (output stream) class object tied to standard error.

Leave a Reply

Your email address will not be published. Required fields are marked *