fork(1) download
  1. #include <stdio.h>
  2. struct test
  3. {
  4. char member1;
  5. char member2;
  6. };
  7.  
  8. int main(void)
  9. {
  10. struct test structure = {'h', 'i'};
  11. void* p = &structure;
  12.  
  13. printf("{%02X, %02X, xxx, xxx} -> %08X", structure.member1, structure.member2, *((int*)p));
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
{68, 69, xxx, xxx} -> 84B06968