Question: how sscanf works in c?
Answer: The sscanf() Function in C The first argument is a pointer to the string from where we want to read the data. The rest of the arguments of sscanf() is same as that of scanf() . It returns the number of items read from the string and -1 if an error is encountered.