fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. char buf[2] = {3, -42};
  5. int i;
  6. for(i = 0; i < 2; ++i) {
  7. printf("%02x ", (unsigned)(unsigned char)buf[i]);
  8. }
  9. printf("\n");
  10. return 0;
  11. }
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
03 d6