fork(1) download
  1. #include <stdio.h>
  2. #include <stdint.h>
  3. #include <inttypes.h>
  4.  
  5. int main(void) {
  6. int32_t b32 = 0xF8452370;
  7. int64_t b64 = b32;
  8. printf("%" PRId32 " - %" PRIx32 "\n", b32, b32);
  9. printf("%" PRId64 " - %" PRIx64 "\n", b64, b64);
  10.  
  11. int b32i = 0xF8452370;
  12. long long int b64i = b32;
  13. printf("%d - %x\n", b32, b32);
  14. printf("%lld - %llx\n", b64, b64);
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 9416KB
stdin
Standard input is empty
stdout
-129686672 - f8452370
-129686672 - fffffffff8452370
-129686672 - f8452370
-129686672 - fffffffff8452370