Question:What is the difference between printf() and sprintf() ?
Answer
sprintf() writes data to the character array whereas printf(...) writes data to the standard output device.