What is the difference between cout and stdout; cin amd stdin..explain with an example | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What is the difference between cout and stdout; cin amd stdin..explain with an example

c++

4th Aug 2017, 5:15 PM
Harini T
Harini T - avatar
7 Réponses
+ 2
Stdio is library of C;which supports printf() & scanf() which performs the same function of Cout& Cin for C++language respectively..
4th Aug 2017, 5:50 PM
Avatar
Avatar - avatar
+ 1
Let me tell you that you are confusing between C&C++. STDIN & STDIO are C command while CIN & COUT are C++ command ; although base of both languages are same but one language's commands are not applicable to other.
4th Aug 2017, 5:47 PM
Avatar
Avatar - avatar
0
Stdio is library of C;which supports printf() & scanf() which performs the same function of Cout& Cin for C++language respectively..
4th Aug 2017, 5:52 PM
Avatar
Avatar - avatar
0
I have herd about STDOUT it might be a mistake. But I am sure that STDIN is a library function of C ;unlike <iostream>&<fstream>.
4th Aug 2017, 5:56 PM
Avatar
Avatar - avatar
0
Where ever I am wrong please let me know.
4th Aug 2017, 5:58 PM
Avatar
Avatar - avatar
0
PRINF & SCANF are supported by<STDIO . H>. Console Input & Output. <STDIO. H> Standard Input & Output. STDOUT Standard Output Device STDIN Standard Input Device <STDIO. H> supports following functions : fflush(), printf(), scanf() etc <CONIO. H> supports following functions : gech(), getche() etc
4th Aug 2017, 6:25 PM
Avatar
Avatar - avatar
- 3
cin >> & cout << is a shorter way
4th Aug 2017, 7:55 PM
BwD//Felix Janetzki
BwD//Felix Janetzki - avatar