A two dimensional (2D) array is a collection of data items , all of the same types , structured in two dimensions (referred as rows and columns).
It is also called as array of arrays or matrix. Many times it is required to manipulate the data in table format which contains rows and columns. In these cases, we have to give two dimensions to the array.
In order to create such two dimensional arrays in C , following syntax should be followed.
data-type array-name[rows][columns];
Below are the some important C Program of 2D Array (Matrix):-
> Program to input m * n order matrix and find its transpose.
> Program to input m*n order matrix and find the sum of diagonal element
> Program to input m*n matrix and find the sum of right diagonal element.
> Program to input m*n order matrix and find the largest element.
> Program to input m*n order matrix and find the smallest element.
> Program to check two matrix are equal or not.
> Program to search element in a matrix.
> Program to input m*n order matrix and convert into upper triangular matrix.
> Program to input m*n order matrix and convert into lower triangular matrix.
> Program to perform multiplication of two matrix.
Some other important C program:-
Important c program of 1D Array
Important c program of String
Important c program using function
Click Here to download complete notes of C programming
It is also called as array of arrays or matrix. Many times it is required to manipulate the data in table format which contains rows and columns. In these cases, we have to give two dimensions to the array.
In order to create such two dimensional arrays in C , following syntax should be followed.
data-type array-name[rows][columns];
Below are the some important C Program of 2D Array (Matrix):-
> Program to input m * n order matrix and find its transpose.
> Program to input m*n order matrix and find the sum of diagonal element
> Program to input m*n matrix and find the sum of right diagonal element.
> Program to input m*n order matrix and find the largest element.
> Program to input m*n order matrix and find the smallest element.
> Program to check two matrix are equal or not.
> Program to search element in a matrix.
> Program to input m*n order matrix and convert into upper triangular matrix.
> Program to input m*n order matrix and convert into lower triangular matrix.
> Program to perform multiplication of two matrix.
Some other important C program:-
Important c program of 1D Array
Important c program of String
Important c program using function
Click Here to download complete notes of C programming
Comments
Post a Comment