Guest User

Untitled

a guest
Dec 17th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. union num {
  2. int i;
  3. short s;
  4. float f;
  5. double d;
  6. };
  7. enum tag {SHORT, INT, FLOAT, DOUBLE};
  8. struct vrnumber {
  9. num num;
  10. tag type;
  11. };
  12.  
  13. vrnumber m;
  14. switch (m.type) {
  15. case SHORT: //an operation ..
  16. case INT: //same operation ...
  17. case FLOAT: //same operation ...
  18. case DOUBLE: //same operation ...
Add Comment
Please, Sign In to add comment