timus221

Untitled

Mar 2nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char buffer[50];
  6. int n, a = 5, b = 3;
  7. n = sprintf(buffer, "%d plus %d is %d", a, b, a + b);
  8. printf("[%s] is a string %d chars long\n", buffer, n);
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment