Question: what is the difference between the scanf() and sscanf() functions?
Answer: scanf reads from the standard input stream stdin. ... sscanf reads from the character string s. Each function reads characters, interprets them according to a format, and stores the results in its arguments.