Can you guys tell me what is the difference between header <iostream> and <stdio.h> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you guys tell me what is the difference between header <iostream> and <stdio.h> ?

5th Mar 2016, 9:43 AM
NaMan GuPta
NaMan GuPta - avatar
2 Answers
+ 1
stdio.h is the header file used for input/output in the C standard library. iostream is the input output class in C++
10th May 2016, 9:43 AM
James Flanders
0
stdio.h and iostream have deferent methods included in them and are used for deferent purposes. The in/out methods for stdio.h are mainly print() and scan(), for iostream, cin and cout. While cin/cout is more easy to use, scan/print is quicker. (Not a notable difference in small data sizes) You can use both in c++ depending on the situation but iostream is recommended.
30th Aug 2016, 5:21 PM
MJWzed