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
What is array in c++ example?
Will a catch statement catch a derived exception if it is looking for the base class?
Give example of a pure virtual function in c++?
What are shallow and deep copies?
Is c++ used anymore?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
Define vptr.
How do you define a class in c++?
What is enum c++?
an integer constant must have atleast one a) character b) digit c) decimal point
How do you differentiate between overloading the prefix and postfix increments?
Write a program which uses Command Line Arguments
Is string an object in c++?
What is the latest c++ version?
Differentiate between an array and a list?