Advertisement
BullyATWiiplaza

2 Element Array Printing

Aug 22nd, 2015
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdint.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. main()
  6. {
  7.     uint32_t dbg[2];
  8.  
  9.     dbg[0] = 1337;
  10.     dbg[1] = 1338;
  11.  
  12.     char buf[1000];
  13.     sprintf(buf, "%d %d", dbg[0], dbg[1]);
  14.     printf("%s\n", buf); // OSFatal(buf);
  15.    
  16.     return EXIT_SUCCESS;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement