Why it is that while we include header file here we only have to write <iostream> but while coding in computer <iostream.h> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why it is that while we include header file here we only have to write <iostream> but while coding in computer <iostream.h>

27th Aug 2017, 4:27 AM
Harsh Wellengsly
Harsh Wellengsly - avatar
2 Answers
0
iostream and iostream.h are 2 different header file's, both are used for input and output operations , but iostream.h is a header file derived from iostream
27th Aug 2017, 5:38 AM
pratheek shenoy k
0
we can use both the header file while coding. sometimes it depends on the compiler being used, so it can show an error
27th Aug 2017, 5:39 AM
pratheek shenoy k