What is the purpose of sprintf?
(a) It prints the data into stdout
(b) It writes the formatted data into a string
(c) It writes the formatted data into a file
(d) None of the mentioned
I got this question during an interview for a job.
This interesting question is from Formatted Output topic in section Input and Output in C of C