Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardC#boxing and unboxing costSingle-choice MCQ

When you box an `int`, what is the exact memory layout of the resulting heap object on a 64-bit runtime, and where does the value end up relative to a normal `int` field?

int x = 42; object o = x; // boxing