Multidimensional Arrays in Golang

# Introduction In the previous section, we learned about the basic usage of arrays. What types of elements can be in an array? In Go, the elements in an array can be of any primitive type, such as integers, strings, or custom types. What happens if the elements in an array are **arrays**? Then we have a multidimensional array: ![Multidimensional Array](https://file.labex.io/namespace/df87b950-1f37-4316-bc07-6537a1f2c481/go/lab-16-multidimensional-arrays/assets/4fff25628557223a0ac527096baacf3e-0.png) As shown in the figure above, the purple box is our original array. Each element in the purple box array is a **new array** (the red box). **Key Concepts:** - Definition of a two-dimensional array - Initialization of a two-dimensional array - Traversing a two-dimensional array - Use of multidimensional arrays

|
60 : 00

Click the virtual machine below to start practicing