- 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 Réponses
+ 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