Answers for "go Iterating over an array using a range operator"

C
0

go Iterating over an array using a range operator

package main

import "fmt"

func main() {
    data := [...]string{"Ned", "Edd", "Jon", "Jeor", "Jorah"}
    for index, value := range data {
        fmt.Printf("Character %d of GoT is = %s\n", index, value)
    }
}
Posted by: Guest on October-18-2021

Code answers related to "go Iterating over an array using a range operator"

Code answers related to "C"

Browse Popular Code Answers by Language