What are multidimensional arrays used for? Until recently, I haven't found much use for them until I read something about designing a grid and it says use a multidimensional array with the sizes of the grid to your liking (i.e. if you want the grid to be 20x40, than it'll look like this: int grid[20][40]).

I dont really understand them and how to use them.