fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char guid[] = {1, -1, -126, -127, 127};
  5. for (int i = 0 ; i != 5 ; i++) {
  6. printf("\\%02hhx", (char)guid[i]);
  7. }
  8. printf("\n");
  9. for (int i = 0 ; i != 5 ; i++) {
  10. printf("\\%02x", (unsigned char)guid[i]);
  11. }
  12. printf("\n");
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5272KB
stdin
Standard input is empty
stdout
\01\ff\82\81\7f
\01\ff\82\81\7f