A

Admin • 833K Points
Coach

Q. What is the size of an empty structure in C?

  • (A) 0 bytes
  • (B) 1 byte
  • (C) 2 bytes
  • (D) Compiler dependent
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category C Programming
  • Hashtags:

Explanation by: Admin

Size of an empty struct is compiler dependent, often 1 byte to ensure uniqueness of address.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.