View Full Version : printf() and sprintf()
08-28-2009, 04:47 AM
i have read some tutorials about these,but still be confused.who can tell me the true difference between them? thank you!
08-28-2009, 06:09 AM
printf() returns an int, sprintf() returns a string.
08-28-2009, 08:21 AM
These functions format a string, printf will output it:
printf("%s, there!", 'Hello');
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.