+ 2
Use of scanf, getchar and putchar
I am starter in coding I am learning in c please tell me use of scanf getchar and putchar. Thank you
2 odpowiedzi
+ 1
putchar() function is used to write a character on standard output but getchar() function is used to get/read a character from keyboard input;
scanf () function reads formatted data from keyboard.
+ 4
They all are used to get input from user except putchar() which displays a single character on console.