Machine-translated by Google. Questions are authored in English.
Top

Discussion

The size of a union is determined by the size of the

  • A.First member in the union
  • B.Last member in the union 
  • C.Sum of the sizes of all members
  • D.Biggest member in the union

Answer: D

Correct answer: Biggest member in the union

A union’s members all occupy the same storage, so its size is that of its largest member - enough to hold whichever one is in use. A structure, by contrast, gives every member its own space and so is at least the sum of them.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.