Should we put .h extension in header file of c++? | Sololearn: Learn to code for FREE!

0

Should we put .h extension in header file of c++?

Which is right? #include<iostream.h> "or" #include<iostream>

7/11/2019 2:55:21 AM

ankit doot

2 Answers

New Answer

+2

Not necessary.

0

This question has been asked many times before: https://www.sololearn.com/discuss/1442922/?ref=app https://www.sololearn.com/discuss/1489805/?ref=app https://www.sololearn.com/discuss/1374835/?ref=app https://www.sololearn.com/discuss/1197598/?ref=app https://www.sololearn.com/discuss/1689816/?ref=app https://www.sololearn.com/discuss/1522492/?ref=app https://www.sololearn.com/discuss/1465804/?ref=app https://www.sololearn.com/discuss/1772181/?ref=app https://www.sololearn.com/discuss/1677217/?ref=app https://www.sololearn.com/discuss/1839000/?ref=app https://www.sololearn.com/discuss/1254023/?ref=app https://www.sololearn.com/discuss/1589410/?ref=app https://www.sololearn.com/discuss/1271707/?ref=app https://www.sololearn.com/discuss/1559540/?ref=app https://www.sololearn.com/discuss/1190377/?ref=app https://www.sololearn.com/discuss/1719462/?ref=app https://www.sololearn.com/discuss/1584052/?ref=app https://www.sololearn.com/discuss/575559/?ref=app https://www.sololearn.com/discuss/464149/?ref=app