Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardGoescape analysisSingle-choice MCQ

Consider this code under default settings. Where does the backing array for `s` get allocated, and why?

func build() *[]int { s := make([]int, 0, 3) s = append(s, 1, 2, 3) return &s }