fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. unsigned int i = 0x557e89f3;
  5. unsigned char c[4];
  6. c[0] = i & 0xFF;
  7. c[1] = (i>>8) & 0xFF;
  8. c[2] = (i>>16) & 0xFF;
  9. c[3] = (i>>24) & 0xFF;
  10. printf("c[0] = %x \n", c[0]);
  11. printf("c[1] = %x \n", c[1]);
  12. printf("c[2] = %x \n", c[2]);
  13. printf("c[3] = %x \n", c[3]);
  14.  
  15.  
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2052KB
stdin
Standard input is empty
stdout
c[0] = f3 
c[1] = 89 
c[2] = 7e 
c[3] = 55