Why the pre-processor of C++ doesn't contain "<iostream.h>" header file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the pre-processor of C++ doesn't contain "<iostream.h>" header file?

25th Dec 2016, 8:17 PM
Aaryan Suthar
Aaryan Suthar - avatar
3 Answers
+ 4
iostream.h is header for C. For C++ the header corresponding name is iostream ( without the ".h" extention )
25th Dec 2016, 8:20 PM
visph
visph - avatar
+ 3
iostream.h is mainly for C, although it is possible to use it for C++ , we only use iostream for C++. The reason why iostream.h isnt default for C++ is because it is slightly more limited and can cause bugs/errors, which is why we use iostream
25th Dec 2016, 8:26 PM
Wen Qin
Wen Qin - avatar
0
thnx guys
25th Dec 2016, 8:28 PM
Aaryan Suthar
Aaryan Suthar - avatar