What is the difference between #include <iostream> using namespace std; & #include <stdio.h> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference between #include <iostream> using namespace std; & #include <stdio.h>

Can someone tell me the difference between these two libraries ? Because we'r told to use at the school the <stdio.h> library and i can't see the point with <iostream>. Thanks guys.

1st May 2017, 6:07 AM
Daniel Brož
Daniel Brož - avatar
1 Answer
+ 2
iostrram is c++ stdio.h is C. stdio will work in C++ but lacks features of iostream
1st May 2017, 6:33 AM
James
James - avatar