+ 1
What is the best use case of union in C?
Although this topic has been fairly discussed here and many other forums, however I couldn't find the best use case of this feature. Yes the difference between struct and union is in their allocation of memory but why should we prefer one over the other?
1 Odpowiedź
+ 8
https://www.sololearn.com/discuss/1240354/?ref=app
https://www.sololearn.com/discuss/107633/?ref=app
https://www.sololearn.com/discuss/1698728/?ref=app
https://www.sololearn.com/discuss/1118608/?ref=app
https://www.sololearn.com/discuss/1572021/?ref=app
https://www.sololearn.com/discuss/202070/?ref=app
https://www.sololearn.com/discuss/1712720/?ref=app
https://www.sololearn.com/discuss/819953/?ref=app