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

Consider the struct below on a 64-bit runtime with default sequential/auto layout. What is `sizeof(S)` (via an unsafe sizeof or Marshal-independent CLR layout) and why?

struct S { byte b; long l; }