+ 2
What is the difference between Structure and union?
3 Réponses
+ 5
Union is similar to structure except that all the members of union share a common memory space(so the system allocates only the memory required by the largest sized variable) and whenever you make assignment to another variable the stuff overwrites the same memory location.
+ 22
Sneh Chauhan
https://www.sololearn.com/Discuss/1609349/?ref=app
https://www.sololearn.com/Discuss/96904/?ref=app
https://www.sololearn.com/Discuss/96904/?ref=app
https://www.sololearn.com/Discuss/1899315/?ref=app
https://www.sololearn.com/Discuss/1215623/?ref=app
https://www.sololearn.com/Discuss/117597/?ref=app
https://www.sololearn.com/Discuss/1766508/?ref=app
https://www.sololearn.com/learn/C/2942/?ref=app
https://www.sololearn.com/learn/C/2944/?ref=app
0
سلام☺