+ 1
What is the difference between printf and scanf
7 Respostas
+ 3
yes Ahmed Zakree we are storing the input to the address
+ 15
scanf is function which is used to get formatted input from user and printf function is used to print output.
+ 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);
+ 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
0
From what I know of printf and scanf is that scanf is used to get input from the user. Am I correct?
0
*AsterisK* do we have to you use the address operator “&” while using scanf ? and what if we didnt
0
ok, thanks 🙏