Beginner Go (Golang)
Q8 / 100

What is a slice in Go?

Correct! Well done.

Incorrect.

The correct answer is B) A dynamically-sized, flexible view into an underlying array

B

Correct Answer

A dynamically-sized, flexible view into an underlying array

Explanation

A slice ([]T) has a pointer, length, and capacity. make([]int, 5) or []int{1,2,3}. append() grows it automatically.

Progress
8/100