Isn't it #include <iostream.h>? Instead of #include <iostream> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Isn't it #include <iostream.h>? Instead of #include <iostream>

16th Nov 2016, 3:50 AM
Yolain Ouellette
Yolain Ouellette - avatar
3 Answers
0
Depends on the compiler. #include is for linkage. Few compilers neglect file format. But it's the same file, so if you get errors while linking, just remove or add file format.
16th Nov 2016, 4:02 AM
Nagendra Prajwal
Nagendra Prajwal - avatar
0
Actually, it used before 2002. But after 2002 c++ community and bell lab change it and remove .h from header file. From there this is the standard of c++. When you write iostream it simply means you are calling a header file. Now all compiler shows this as a standard of c++.
16th Nov 2016, 5:59 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
if the header file if of c the we use .h and if it's introduced in c++ then no need of use .h
16th Nov 2016, 11:01 AM
Aditya Singh
Aditya Singh - avatar