Is there any good example to give the difference between a struct
and a union
?
Basically I know that struct
uses all the memory of its member and union
uses the largest members memory space. Is there any other OS level difference?
Is there any good example to give the difference between a struct
and a union
?
Basically I know that struct
uses all the memory of its member and union
uses the largest members memory space. Is there any other OS level difference?