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.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s