C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 45)
45.
Which of the following header file includes definition of cin and cout?
istream.h
ostream.h
iomanip.h
iostream.h
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
5 comments Page 1 of 1.

Abhishek said:   8 years ago
What if I use only <iostream> instead of <iostream.h>.

Saurabh gupta said:   9 years ago
@Natasha.

Try to do it in turbo c++, you won't get any error!

Natasha said:   1 decade ago
If I include <iostream.h> I am going to get a compile-time error because
the default(in the way of default directory) library is <iostream> not <iostream.h>.

Manisha said:   1 decade ago
cin is the object of istream class.
cout is the object of ostream class.

So, It made <iostream.h> header file.
(2)

Rohit said:   1 decade ago
#include<iostream.h>
# is pre defined function & iostream is header file of cin and cout.

Post your comments here:

Your comments will be displayed after verification.