fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. unsigned x = 0x1234;
  5. char s[40];
  6. sprintf(s, "%02x%02x%02x%02x",
  7. x & 0xFF,
  8. (x >> 8) & 0xFF,
  9. (x >> 16) & 0xFF,
  10. (x >> 24) & 0xFF
  11. );
  12.  
  13. printf("%s\n", s);
  14. // your code goes here
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
34120000