Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion
7 / 123
What are the differences between getchar() and scanf() functions for reading strings?
Answer:
get char():reads a single character at a time
scanf():scanf reads all type of data like int,float,char,etc
Asked In ::
Usha
28 Nov, 2020 6:51 AM
get char():reads a single character at a time
scanf():scanf reads all type of data like int,float,char,etc
M.usha
28 Nov, 2020 6:53 AM
get char():get char reads single character at a time
scanf():scanf reads all types of data like int,float,char,etc