C++ Programming - OOPS Concepts - Discussion

Discussion :: OOPS Concepts - General Questions (Q.No.45)

45. 

Which of the following header file includes definition of cin and cout?

[A]. istream.h
[B]. ostream.h
[C]. iomanip.h
[D]. iostream.h

Answer: Option D

Explanation:

No answer description available for this question.

Rohit said: (Apr 25, 2013)  
#include<iostream.h>
# is pre defined function & iostream is header file of cin and cout.

Manisha said: (Jun 2, 2013)  
cin is the object of istream class.
cout is the object of ostream class.

So, It made <iostream.h> header file.

Natasha said: (Jan 8, 2014)  
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>.

Saurabh Gupta said: (Nov 11, 2016)  
@Natasha.

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

Abhishek said: (Nov 1, 2017)  
What if I use only <iostream> instead of <iostream.h>.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.