Can we make a c++ program without iostream header file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Can we make a c++ program without iostream header file?

i am confused about it, is it possible on c or in c++

30th Jan 2017, 1:35 PM
Kirshan Singh Rajput
Kirshan Singh Rajput - avatar
4 Answers
+ 7
You can exclude iostream header file but then you can't use its objects e.g cin, or any other for any input output operations. As far as I know, in C we don't have iostream header file, instead we include stdio.h and use its functions, e.g printf() & scanf().
30th Jan 2017, 6:23 PM
Saumya
Saumya - avatar
+ 1
by using header file as fstream as fstream contains iostream
1st Feb 2017, 6:17 PM
Wazed Ali Gazi
Wazed Ali Gazi - avatar
0
Yes if you do not need them ^^ But it does not happen often
30th Jan 2017, 2:09 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
Yes you can if you don't need to use cin or cout or we can say basic input output.
30th Jan 2017, 6:01 PM
Anket