Declare an array with its size and type:
var nums [5]int
This creates an array of integers. The size is part of the type. []int and []int are different types. Elements are initialized to zero values.
The array size must be a constant. You can't use a variable for the size.