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 |
Why do we need pointers?
What is c++ used for in games?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that
Define friend function.
Explain 'this' pointer and what would happen if a pointer is deleted twice?
What is the difference between structures and unions?
What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?
6 Answers HCL, Integra, IPMC, ORG,
what is data encapsulation in C++?
What are the important differences between c++ and java?
why and when we can declar member fuction as a private in the class?
A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a C++ program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.
In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h