Hello, good morning.
My question today will be just theorical, I read the cap of the book about "Unions", now I try to figure, why do I need this? Looking close, I can do the program without an union, and also, if I don't have any indicator, I can't know what type of variable the union is holding now (at least my book wrote, that I need to put a variable inside a struct, with the union, and then always check this variable that will hold the type that the union is holding now). This is really needed? or I'm missing the best part of Union, and thinking I can change it easilly? My books seems to jump this subject fast.. he just gave 1 little loser example, and that's it.
Thank you in advance, and have a nice day