Grokking Go
Vote

0% completed

​

Multi-Dimensional Array

A multi-dimensional array in Go is an array that contains multiple arrays as its elements. This allows data to be stored in rows and columns (like a table or grid), making it useful for matrices, game boards, and structured data storage.

The most commonly used multi-dimensional array is a two-dimensional (2D) array, but Go supports higher dimensions as well.

Declaring a Multi-Dimensional Array

In Go, a multi-dimensional array is declared by specifying multiple dimensions inside square brackets [size1][size2]dataType.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content