[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C
Home > Technical Interview Q&A > C > Discussion

27 / 123

What are the differences between a structure and a union?

Answer:

Structure- It is an user defined data function that allow to store multiple type of data in a single unit.



It occupies sum of memory of all location.



Whereas, Union- It is also an user defined data function that allow to store multiple type of data in a single unit.



But it occupies memory of largest member only. 

Asked In :: WiproTCSSyntel Inc.

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.