Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char buffer[50];
- int n, a = 5, b = 3;
- n = sprintf(buffer, "%d plus %d is %d", a, b, a + b);
- printf("[%s] is a string %d chars long\n", buffer, n);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment