Menu
×
×
Correct!
Exercise:Print the value of the second element in the cars array.
package main
import ("fmt")
func main() {
var cars = [4]@(6){"Volvo", "BMW", "Ford", "Mazda"}
fmt.Print(@(7))
}
package main
import ("fmt")
func main() {
var cars = [4]string{"Volvo", "BMW", "Ford", "Mazda"}
fmt.Print(cars[1])
}
Not CorrectClick here to try again. Correct!Next ❯ |