Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC#struct memory layoutSingle-choice MCQ

You define an empty struct (no fields). What is sizeof(EmptyStruct) for a C# struct, and how does that differ from the size of a boxed instance of it on the heap?

struct Empty { }