+ 2

can we use printf instead of console.writeline

10th Oct 2016, 8:53 AM
Arpita Chatterjee
Arpita Chatterjee - avatar
4 Respostas
+ 6
No. printf is used in c programming c# is totally different from c.
10th Oct 2016, 11:48 AM
Jamaltheen S
Jamaltheen S - avatar
+ 5
to print something in C# we have to use the Console.writeline keyword not printf
10th Oct 2016, 4:57 PM
Shaik Jaleel
Shaik Jaleel - avatar
+ 4
If you would like to use printf, you can make and overload methods to get the same results.
10th Oct 2016, 12:11 PM
Andreas BeEm Kvist
Andreas BeEm Kvist - avatar
+ 1
printf is c and this is c#. therefore it won't be correct
11th Oct 2016, 2:01 PM
Rogeeve R. Anderson
Rogeeve R. Anderson - avatar