Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyGoslices and slice growthSingle-choice MCQ

What is the output of this slice expression?

s := []int{0, 1, 2, 3, 4, 5} t := s[2:4] fmt.Println(len(t), cap(t))