fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int data[] = {3, 3, 3, 3};
  5. char buf[128], *pos = buf;
  6. for (int i = 0 ; i != 4 ; i++) {
  7. // if (i) {
  8. // pos += sprintf(pos, ", ");
  9. // }
  10. pos += sprintf(pos, "%02X", data[i]);
  11. }
  12. printf("%s\n", buf);
  13. return 0;
  14. }
Success #stdin #stdout 0s 5440KB
stdin
Standard input is empty
stdout
03030303