sprintf - C++ Reference - cplusplus.com - The C++ Resources Network
Depending on the format string, the function may expect a sequence of additional arguments, ... printf ("[%s] is a string %d chars long\n",buffer,n); return 0; } Output: [5 plus 3 is 8] is a string 13 chars long See also snprintf Write formatted outpu...