Want to create interactive content? It’s easy in Genially!
ARRAYS (ARREGLOS) MULTIDIMENSIONALES
joselmc88
Created on May 4, 2021
Start designing with a free template
Discover more than 1500 professional designs like these:
View
Memories Presentation
View
Pechakucha Presentation
View
Decades Presentation
View
Color and Shapes Presentation
View
Historical Presentation
View
To the Moon Presentation
View
Projection Presentation
Transcript
ARRAYS (ARREGLOS) MULTIDIMENSIONALES
Docente: José Luis Mondalgo Céspedes
Es posible crear arrays con más de una dimensión, pasando de la idea de lista, vector o matriz de una sola fila a la idea de matriz de m x n elementos, estructuras tridimensionales, tetradimensionales, etc.
SINTAXIS
Tipo_de_variable[ ][ ]… [ ] Nombre_del_array = new Tipo_de_variable[dimensión1][dimensión2]…[dimensiónN];
También podemos alternativamente usar esta declaración:
Tipo_de_variable[ ][ ] … [ ] Nombre_del_array; Nombre_del_array = new Tipo_de_variable[dimensión1][dimensión2]…[dimensiónN];
La declaración de una matriz tradicional de m x n elementos podría ser:
/* Ejemplo declaración - aprenderaprogramar.com */ int[][] matriz = new int[3][2]; O alternativamente int[][] matriz; matriz = new int[3][2];
VÍDEO
¡muchas gracias!