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

What does the C# compiler emit for `object o = 42;` and how many heap allocations does the boxing involve?

object o = 42;