9951 explained code solutions for 126 technologies


golangHow to get array length


func main() {
  var arr [5]int
  l := len(arr)
}ctrl + c
func main() {

declare main function that will be launched automatically

[5]int

defines array of 5 int elements

len(arr)

returns length of arr array