fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. unsigned x;
  6. unsigned char * y = (unsigned char*)&x;
  7. y[0] = 0x11;
  8. y[1] = 0x22;
  9. y[2] = 0x33;
  10. y[3] = 0x44;
  11. printf("hex 32: %x\n", x);
  12. }
  13.  
Success #stdin #stdout 0s 4488KB
stdin
Standard input is empty
stdout
hex 32: 44332211