Guest User

Untitled

a guest
Jan 21st, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. union foo { int i; double d; };
  2. extern void hacky(union foo);
  3.  
  4. int x = 5;
  5. union foo u = (union foo) x;
  6. hacky((union foo) x);
  7. hacky((union foo) 5);
  8.  
  9. double d = 42.0;
  10. union foo u = (union foo) d;
  11. hacky((union foo) d);
  12. hacky((union foo) 42.0);
Add Comment
Please, Sign In to add comment