14 Answers
New Answer14 Answers
New Answerfirstly because stdio is a c header file and iostream is a c++ header file. And it can be said that iostream is upgraded of stdio in C++, and iostream has much more tokens defined in it then stdio.
First basically stdio is a c header and if you use cout or cin then you must use std:: some sort of things, so it can be said iostream is more flexible too.
"io" in iostream implies input-output which handles the activites of input output declaration...
Sakeen Bhai iostream contains the code for Cin & Cout And many more tokens we use Stdio has others like random randomize. etc but not cin Cout that iostream has
stdio means standard input output , for making use of printf and scanf in the program, whereas iostream for cin and cout which are not I/O functions.
I should say, because it is more simple and friendly. Look any where to descriptions and examples using a functions from stdio printf and scanf to outut/input. There you have to set format parameters of variable, and beginers can do many errors.
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message