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

What does this code print, and what underlying cost does the modification reveal?

object o = 42; var copy = (int)o + 1; Console.WriteLine(((int)o));