Why should we use iostream instead of others like stdio? | Sololearn: Learn to code for FREE!

+7

Why should we use iostream instead of others like stdio?

10/22/2016 11:51:05 AM

Saklaen

14 Answers

New Answer

+17

firstly 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.

+5

because stdio.h is a C header

+1

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.

+1

in c stdio is header file ,in c++ upstream is header

+1

Thanx, everyone for commenting.

+1

"io" in iostream implies input-output which handles the activites of input output declaration...

0

Is it more flexible?

0

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

0

pls I want to learn programming as a beginner where should I start please

0

Who know program of game

-1

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.

-1

ya i have also the same issue

-3

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.

-7

are u c++ or c? its a c header bra