What is the difference between printf() ;in c and cout<<; in c++? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 2

What is the difference between printf() ;in c and cout<<; in c++?

When I was starting my c++ coarse I thought it?

28th May 2021, 6:06 AM
Praveen Saini
Praveen Saini - avatar
2 Antworten
+ 3
Each and every languages have its own syntex and rules c is a functional programming language everything is function which is written with round bracket like printf() and this is defined on stdio.h headerfile . Printf is a function while cout is a object which belong to namespace std method which is defined in iostream lib ;
28th May 2021, 6:21 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
0
A.S.- yes...
28th May 2021, 6:25 AM
Praveen Saini
Praveen Saini - avatar