In C++ cout is:
a) object
b) class
c) something else

Answer Posted / chandra

cout is an object of class ostream that represents the
standard output stream. It corresponds to the cstdio stream
stdout.

By default, most systems have their standard output set to
the console, where text messages are shown, although this
can generally be redirected.

Because cout is an object of class ostream, we can write
characters to it either as formatted data using for example
the insertion operator (ostream::operator<<) or as
unformatted data using the write member function

Is This Answer Correct ?    21 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Array base access faster or pointer base access is faster?

1806


What is a map in c++?

574


What is the this pointer?

620


What are built-in functions? What is the syntax for the definition?

558


What is c++ hiding?

610






Is java easier than c++?

578


Why is c++ still used?

590


What are stacks?

601


Explain the benefits of proper inheritance.

631


What is an overflow error?

606


Which software is used for c++ programming?

605


Define a nested class. Explain how it can be useful.

623


What is the difference between prefix and postfix versions of operator++()?

585


What does obj stand for?

620


Which c++ operator cannot overload?

539