What is the use of scanf in programing | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

What is the use of scanf in programing

3rd May 2021, 6:34 AM
511 sathish Chinnolla
511 sathish Chinnolla - avatar
5 Answers
+ 2
In C programming, scanf() is one of the commonly used function to take input from the user. The scanf() function reads formatted input from the standard input such as keyboards. Complete your course bro , will understand what it is !
3rd May 2021, 6:39 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar
+ 1
scanf() used to take input from the user. https://code.sololearn.com/c5mevAfSz3TT/?ref=app
3rd May 2021, 6:45 AM
Matias
Matias - avatar
0
To read input from the user
3rd May 2021, 6:41 AM
sarada lakshmi
sarada lakshmi - avatar
- 1
What is the use of reading input from the user.what will happen inside that?
3rd May 2021, 7:04 AM
511 sathish Chinnolla
511 sathish Chinnolla - avatar
- 1
Hey 511 sathish Chinnolla If you code to write sum of two numbers ,want to take numbers from that user you need to use scanf() , it will scan those two numbers form keyboard ! Complete 'C' course you will understand !
3rd May 2021, 7:40 AM
Giriraj Yalpalwar
Giriraj Yalpalwar - avatar