Coding a 1D array

Report a typo

Declare an array of integers with the size of 10 elements, assign 54 to its [4] element and finally print the array to the console.

Write a program in Go
package main

import "fmt"

func main() {
// Create the array of 10 elements and assign 54 to its [4] element below:
array := ?

// DO NOT delete, this line prints the array!
fmt.Println(array)
}
___

Create a free account to access the full topic