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

How do you decide which integer type to use?

660


What is a list c++?

671


Using a smart pointer can we iterate through a container?

659


How can a struct in c++ differs from a struct in c?

702


Explain abstraction.

696






What are c++ tokens?

691


Which one between if-else and switch is more efficient?

685


What does extern mean in a function declaration in c++?

798


What is the use of map in c++?

722


Does std endl flush?

673


What is virtual base class?

665


Why cout is used in c++?

660


What is wrapper class in c++?

706


Are vectors passed by reference c++?

599


Explain stack & heap objects?

711