fork(1) download
  1. #include<stdio.h>
  2.  
  3. typedef struct {
  4. union {
  5. char c;
  6. int i;
  7. };
  8. } Tipo;
  9.  
  10. int main() {
  11. union {
  12. char c;
  13. int i;
  14. } x;
  15. x.i = 65;
  16. Tipo y;
  17. y.i = 65;
  18. printf("%c, %c", x.c, y.c);
  19. }
  20.  
  21. //https://pt.stackoverflow.com/q/355640/101
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
A, A