Someone say me simple definition and example for scanf | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Someone say me simple definition and example for scanf

6th Jan 2020, 4:31 PM
Akhilesh
Akhilesh - avatar
2 Answers
+ 2
Scanf gets the user input Example: Int a; Scanf("%d", &a) %d means it's an integer, and the "a" means that's the integer that you want to store the value of the input so, if you use printf("%d", a) you will print what the user input
6th Jan 2020, 4:58 PM
PATO ACRIANO
PATO ACRIANO - avatar
0
Thanks
7th Jan 2020, 10:53 AM
Akhilesh
Akhilesh - avatar