fork(2) download
  1. #include <stdio.h>
  2.  
  3. union {
  4. struct {
  5. short int A;
  6. unsigned char B;
  7. unsigned char pad;
  8. };
  9. long result;
  10. } x;
  11.  
  12. int main(void) {
  13. x.A = 0x8899;
  14. x.B = 0xCC;
  15. x.pad = 0;
  16. printf("%x",x.result);
  17. }
  18.  
Success #stdin #stdout 0s 4400KB
stdin
Standard input is empty
stdout
cc8899