What is the purpose of sprintf?

What is the purpose of sprintf? mcq and its answer is provided on this page.

sprintf() is file handling function in c programming language.

What is the purpose of sprintf?

Que. What is the purpose of sprintf?
a a) It prints the data into stdout
b b) It writes the formatted data into a string
c c) It writes the formatted data into a file
d d) None of the mentioned
Answer: b
Explanation : None.


Comments