C++ Programming - OOPS Concepts - Discussion
Discussion Forum : OOPS Concepts - General Questions (Q.No. 26)
26.
Which of the following is the correct class of the object cout?
Discussion:
35 comments Page 2 of 4.
Paris said:
1 decade ago
iostream is right as it is for both the cin and cout objects.
Arjun EJ said:
1 decade ago
cout is for output and cin is for input.
For cout-include the header <istream>.
For cin -include the header <ostream>.
For cout-include the header <istream>.
For cin -include the header <ostream>.
Abc said:
1 decade ago
iostream is correct answer because ostream is not any header file in C++.
Venkatesh said:
1 decade ago
Cout: Ostream correct or wrong.
Please tell me the answer any one tell me.
Please tell me the answer any one tell me.
Shreyas said:
1 decade ago
iostream has 2 parts istream and ostream and cout is found in ostream class but the apparent answers are both ostream and iostream.
Sailee shazmeen said:
1 decade ago
We also confuse about iostream and ostream.
Arpita said:
10 years ago
Here as asked in the question the correct class of cout not for cout an cin.
So the correct one is ostream if it is asked cin and cout both then it is iostream.
So the correct one is ostream if it is asked cin and cout both then it is iostream.
Ashok said:
10 years ago
Explain about ifstream?
KUMARI said:
10 years ago
ifstream is input file stream class.
Preet said:
9 years ago
Hi, iostream is the correct answer. Briefly, explain ostream and why the answer is ostream?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers