2 votes 2 votes closed as a duplicate of: GATE CSE 2000 | Question: 1.17, ISRO2015-79 explain Ipsita Priyadarsini asked Sep 17, 2017 • closed Sep 17, 2017 by Tesla! Ipsita Priyadarsini 507 views comment Share Follow See all 2 Comments See all 2 2 Comments reply saipriyab commented Sep 17, 2017 reply Follow Share Structure is similar to array but it stores heterogeneous values.Union is one where memory is allocated based on highest memory availability of a particular data type.In the above example Union has two variables float which is 4 bytes and long which is 8 bytes so Union picks the largest value which is long and structure has array of elements for shirt so 5*2=10 si total memory is 18 bytes 1 votes 1 votes Ipsita Priyadarsini commented Sep 18, 2017 reply Follow Share Thank you. Nice explain. 0 votes 0 votes Please log in or register to add a comment.