InterviewSolution
Saved Bookmarks
| 1. |
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 mentionedI 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 |
|
Answer» The correct OPTION is (B) It writes the FORMATTED DATA into a string |
|