Why we put .h in it <iostream.h> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Why we put .h in it <iostream.h>

i mean that why we put .h in < iostream.h>

22nd Oct 2016, 8:05 PM
Rohit Gupta
Rohit Gupta - avatar
5 Answers
+ 4
At least for my compiler, you don't actually need the '.h'; you can just use <iostream>
22nd Oct 2016, 8:35 PM
Zeke Williams
Zeke Williams - avatar
+ 2
iostream.h is deprecated by those compilers that provide it, iostream is part of the C++ standard. Anyway <iostream.h> is old and some compilers does not support it
22nd Oct 2016, 11:26 PM
Аца Србија
Аца Србија - avatar
0
it isn't necessary
30th Oct 2016, 1:35 PM
Varun
0
.h is for C
30th Oct 2016, 1:36 PM
Varun
- 2
it's a library function. with out it you can't run your program
22nd Oct 2016, 8:58 PM
Emeka John
Emeka John - avatar