fork(1) download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. union a
  6. {
  7. int i;
  8. char ch[2];
  9. };
  10. union a u;
  11. u.ch[0]=3;
  12. u.ch[1]=2;
  13. printf("%d, %d, %d\n", u.ch[0], u.ch[1], u.i);
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0s 4280KB
stdin
Standard input is empty
stdout
3, 2, 515