Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardSwiftmemory layout and alignmentSingle-choice MCQ

A struct has fields declared in this order. What is its MemoryLayout<S>.stride on a 64-bit platform, and why?

struct S { let a: Bool let b: Int64 let c: Bool }