NVIDIA Interview Question

what is the difference between struct and a union?

Interview Answer

Anonymous

Jan 6, 2011

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