NVIDIA interview question

what is the difference between struct and a union?

Interview Answer

Anonymous

6 Jan 2011

Structure :- enables us to access different locations in memory Union :- elements serve as different names by which same memory can be accessed