+ 2
Can I use printf ans scanf in the place of cout and cin ..?
6 odpowiedzi
+ 5
cout & cin are part of the iostream interface for input and output. They are an ostream object and an istream object, respectively. They use the overloaded << operator to output any object, based on its type and the various flags set by manipulators.
printf and scanf are part of the stdio.h interface also known as cstdio. They are variable-argument functions, which use a format specification to tell them what the types of their arguments are. Some find the iostream interface easier, and it is safer and expandable. However, these advantages come at a small performance penalty. printf and scanf on the other hand are a bit faster, but are unsafe, and some find them harder to use.
+ 4
Yes you can use but you have to include header file.
Example : #include<conio.h>
+ 2
Of course. They're faster than cin and cout.
+ 1
yes u can all the codes of C language can be used in C++
+ 1
No.Print f and scan f should be used only in C
0
thanks guys