Google News
logo
Golang - Quiz(MCQ)
Which of the following is correct about ranges in Go?
A)
With maps, it returns the key of the next key-value pair.
B)
With array and slices, it returns the index of the item as integer.
C)
The range keyword is used in for loop to iterate over items of an array, slice, channel or map.
D)
All of the Above

Correct Answer :   All of the Above

Advertisement