Professional Documents
Culture Documents
1.2.4 Multidimensional Array
1.2.4 Multidimensional Array
Multidimensional arrays
• Array having more than one subscript variable is called Multi-Dimensional array.
• A Two – dimensional Arrays m x n array A is a collection of m . n data elements such
that each element is specified by a pair of integers (such as I, J), called subscripts.
• The element of A with first subscript I and second subscript J will be denoted by
A[I,J]
Columns
1 2 3
1 A[1, 1] A[1, 2] A[1, 3]
Rows 2
A[2, 1] A[2, 2] A[2, 3]
3
A[3, 1] A[3, 2] A[3, 3]
• return 0;
• }
University Institute of Engineering (UIE)
Department of Computer Science and Engineering (CSE)
Matrix Multiplication
• int main() {
• int a[10][10], b[10][10], c[10][10], n, i, j, k;
References
• Lipschutz, Seymour, “Data Structures”, Schaum's Outline
Series, Tata McGraw Hill.
• Goodrich, Michael T., Tamassia, Roberto, and Mount,
David M., “Data Structures and Algorithms in C++”, Wiley
Student Edition.
• https://www.geeksforgeeks.org/array-data-structure/
• https://www.tutorialspoint.com/
data_structures_algorithms/array_data_structure.htm
• https://www.w3schools.in/data-structures-tutorial/
data-structures-arrays/
Books Recommended
• Lipschutz, Seymour, “Data Structures”, Schaum's Outline
Series, Tata McGraw Hill.
• Gilberg/Forouzan,” Data Structure with C ,Cengage
Learning.
• Goodrich, Michael T., Tamassia, Roberto, and Mount,
David M., “Data Structures and Algorithms in C++”, Wiley
Student Edition.
THANKS