Answers for "how to get the length of an array go"

Go
0

go Length of the array in Go

package main

import "fmt"

func main() {
    data := [...]string{"Ned", "Edd", "Jon", "Jeor", "Jorah"}
    fmt.Println("length of data is", len(data))
}
Posted by: Guest on October-18-2021

Code answers related to "how to get the length of an array go"

Browse Popular Code Answers by Language