Is it <iostream> or <iostream.h>? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Is it <iostream> or <iostream.h>?

15th Jul 2016, 1:19 PM
bharat kharbanda
bharat kharbanda - avatar
5 Answers
+ 5
1st is anew version and 2nd one is of old version
15th Jul 2016, 1:42 PM
Pratham Jain
Pratham Jain - avatar
+ 3
modern compilers....1st one ancient compilers ...2nd one
15th Jul 2016, 1:37 PM
Mukul Kumar
Mukul Kumar - avatar
+ 2
both are correct. depends upon the compiler type you use.
15th Jul 2016, 2:46 PM
SIDDHARTH VASU
SIDDHARTH VASU - avatar
+ 1
it with be correct to write 1st
15th Jul 2016, 2:07 PM
Shatmanliev Toktonazar
Shatmanliev Toktonazar - avatar
- 2
in c++ u should use <iostream.h>
15th Jul 2016, 2:41 PM
Siddhant Saxena
Siddhant Saxena - avatar