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?
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!
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>.
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.
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.
# is pre defined function & iostream is header file of cin and cout.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers