Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardSwiftexistential containersSingle-choice MCQ

Given the code, what is the in-memory size of the existential value `e` on a 64-bit platform, and why?

protocol P {} protocol Q {} struct S: P, Q { var a = 0 } let e: any P & Q = S() // MemoryLayout.size(ofValue: e) == ?