What is scanf? I didn't understood it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is scanf? I didn't understood it

Can anybody help me with scanf... I didn't understood what it's his utility

26th Oct 2018, 10:10 PM
FireStarter 95
FireStarter 95 - avatar
7 Answers
+ 5
scanf means scan formatted. So scanf will read keyboard buffer like the format you specified. In a informal way scanf("format", var addres to sign value) here a example i made: https://code.sololearn.com/c8F128G57iuN/?ref=app Edit: You want to use scanf when you know the type of the data inserted and how is inserted.
26th Oct 2018, 10:34 PM
Anya
Anya - avatar
+ 2
supriya🍀 yes i kind misleading in my explanation.
26th Oct 2018, 11:27 PM
Anya
Anya - avatar
+ 2
supriya🍀 Thanks for the compliment and feedback
26th Oct 2018, 11:31 PM
Anya
Anya - avatar
0
supriya🍀 just a reminder, remember to mark the best answer😉
27th Oct 2018, 5:53 PM
Gordon
Gordon - avatar
0
Thanks to all
27th Oct 2018, 6:25 PM
FireStarter 95
FireStarter 95 - avatar
0
oh, it's FireStarter 95 who asked the question, there is mark best answer
27th Oct 2018, 6:27 PM
Gordon
Gordon - avatar
0
below the upvote downvote of each answer there is a tick.
27th Oct 2018, 6:29 PM
Gordon
Gordon - avatar