In C++ cout is:
a) object
b) class
c) something else
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / reejusri
Its an Object of class OStream, thats why we add its
corresponding header file that is <iostream.h>, Open this
header file you wil get complete infomation.
Is This Answer Correct ? | 9 Yes | 0 No |
Answer / kiruthika
C++ treats everything as an object.me,u,we,cout all are
object in C++.So cout is an object.
Is This Answer Correct ? | 10 Yes | 1 No |
Answer / shakti singh khinchi
object of ostream_withassign. (a) is the right answer.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / hemant majithia
ans is a) it is an object of ostream_withassign.
Is This Answer Correct ? | 2 Yes | 2 No |
Answer / manju
The answer is someting else.
cout is an ostream opertor.
Is This Answer Correct ? | 4 Yes | 14 No |
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
Write about the access privileges in c++ and also mention about its default access level?
Do you know what are pure virtual functions?
which of the following is not an secondary constant a) array b) real c) union
Which is the best c++ software?
i have given a project to create examination seating plan system in c++. so can anyone send me the answer of this question quickly??????
How are pointers type-cast?
Do class declarations end with a semicolon? Do class method definitions?
What is virtual base class uses?
class X { private: int a; protected: X(){cout<<"X constructor was called"<<endl;} ~X(){cout<<"X destructor was called"<<endl} }; Referring to the code above, which one of the following statements regarding "X" is TRUE? a) X is an abstract class. b) Only subclasses of X may create X objects. c) Instances of X cannot be created. d) X objects can only be created using the default copy constructor. e) Only friends can create instances of X objects.
What is a driver program?
Which is the best c++ compiler for beginners?