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

Discussion

Is the size of a union the size of its largest member?

  • A.Yes
  • B.No
  • C.May Be
  • D.Can't Say

Answer: A

Correct answer: Yes

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.