Question: what is the difference between scanf and sscanf?
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.