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

What is c strings syntax?

610


Write bites in Turbo c++ Header ("Include") Files.

690


What is #include sstream?

626


Where can I run c++ program?

605


Difference between overloaded functions and overridden functions

584






Keyword mean in declaration?

600


What are the differences between new and malloc?

633


What is an adaptor class or wrapper class in c++?

609


What is auto type c++?

630


What is atoi?

546


Assume an array of structure is in order by studentID field of the record, where student IDs go from 101 to 500. Write the most efficient pseudocode algorithm you can to find the record with a specific studentID if every single student ID from 101 to 500 is used and the array has 400 elements. Write the most efficient pseudocode algorithm you can to find a record with a studentID near the end of the IDs, say in the range from 450 to 500, if not every single student ID in the range of 101 to 500 is used and the array size is only 300

1793


What is a memory leak c++?

592


What are the rules for naming an identifier?

563


Is swift faster than c++?

568


When is dynamic checking necessary?

604