What is the difference b/w iostream & iostream.h | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What is the difference b/w iostream & iostream.h

are both header files???

8th Dec 2016, 6:01 PM
krishna kant prajapat
krishna kant prajapat - avatar
1 Answer
+ 5
Use <iostream> because it is guaranteed by the standard to exist. It's worth noting that the only standard headers that end with .h are the C standard library headers. All C++ standard library headers do not end with .h . It just depends on the name of the file provided by your toolchain. Gud Luk! -bErN
8th Dec 2016, 6:31 PM
bernscode
bernscode - avatar