+ 2

What is the difference between Structure and union?

29th Jun 2020, 9:13 AM
Sneh Chauhan
Sneh Chauhan - avatar
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.
29th Jun 2020, 9:22 AM
Arsenic
Arsenic - avatar
0
سلام☺
29th Jun 2020, 11:30 AM
Zahra Rostami
Zahra Rostami - avatar