+ 1

What is the difference between printf and scanf

27th May 2019, 4:53 PM
Ahmed Zakree
Ahmed Zakree - avatar
7 ответов
+ 3
yes Ahmed Zakree we are storing the input to the address
27th May 2019, 5:30 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 15
scanf is function which is used to get formatted input from user and printf function is used to print output.
27th May 2019, 5:19 PM
Priyanka♥️
+ 5
printf - - > is use to print characters or values to the screen printf("My name is Thomas"); scanf--> is used to take user input from the keyboard. int i; scanf("%d", &i);
27th May 2019, 5:16 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 4
Thomas Williams yes. Scanf() is used for reading from keyboard input, and printf() is used for print that value which is read by scanf() both are present in standard library
27th May 2019, 5:17 PM
MsJ
MsJ - avatar
0
From what I know of printf and scanf is that scanf is used to get input from the user. Am I correct?
27th May 2019, 5:07 PM
Trigger
Trigger - avatar
0
*AsterisK* do we have to you use the address operator “&” while using scanf ? and what if we didnt
27th May 2019, 5:29 PM
Ahmed Zakree
Ahmed Zakree - avatar
0
ok, thanks 🙏
27th May 2019, 5:30 PM
Ahmed Zakree
Ahmed Zakree - avatar