I've seen tutorials and youtube videos but I can't figure out how does multidimensional array stores variables
1 D array
When I write the below the line in code it means the compiler allocate five memory location and store five integer variable
2 D array
When I write the below the line in code it means the compiler allocate ten memory location
I don't understand 3 D array how does it store variables. How many variables are below the declaration store?
1 D array
When I write the below the line in code it means the compiler allocate five memory location and store five integer variable
Code:
int [5] = { 1, 2,3, 4,5};
2 D array
When I write the below the line in code it means the compiler allocate ten memory location
Code:
int [5] [2] ;
I don't understand 3 D array how does it store variables. How many variables are below the declaration store?
Code:
int [5] [2] [3];