fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int x1 = 18, x2 = -18;
  6. printf("%04X\n", x1);
  7. printf("%04X\n", x2);
  8. printf("%+04X\n", x2);
  9. }
Success #stdin #stdout 0s 4560KB
stdin
Standard input is empty
stdout
0012
FFFFFFEE
FFFFFFEE