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.
Download as RTF, PDF, TXT or read online on Scribd
0 ratings0% 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.