0% found this document useful (0 votes)
10 views

Dynamic

sprintf(...) writes data to a character array while printf(...) writes data to the standard output device such as the console. The printf() function outputs formatted text to the standard output while sprintf() writes formatted text to a character string. sprintf() stores the output in a string rather than displaying it.

Uploaded by

Vidhya Dharan
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Dynamic

sprintf(...) writes data to a character array while printf(...) writes data to the standard output device such as the console. The printf() function outputs formatted text to the standard output while sprintf() writes formatted text to a character string. sprintf() stores the output in a string rather than displaying it.

Uploaded by

Vidhya Dharan
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

printf() Function- What is the difference between "printf(...)" and "sprintf(...)"?

sprintf(...) writes data to the character array whereas printf(...) writes data to the standard
output device

You might also like