fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <ctype.h>
  4.  
  5. union myUnion
  6. {
  7. int x;
  8. long double y;
  9. };
  10.  
  11. int main()
  12. {
  13. union myUnion a;
  14. a.y = 3.2;
  15. printf("%.50Lf\n", a.y);
  16. a.x = 5;
  17. printf("%.50Lf\n", a.y);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0s 4516KB
stdin
Standard input is empty
stdout
3.20000000000000017763568394002504646778106689453125
3.19999999925494194139181935998550443400745280086994