Array and Matrix
- One-dimensional array
- Multi-dimensional array
Required knowledge
List of array and matrix programming exercises
- Write a C program to read and print elements of array. - using recursion.
- Write a C program to print all negative elements in an array.
- Write a C program to find sum of all array elements. - using recursion.
- Write a C program to find maximum and minimum element in an array. - using recursion.
- Write a C program to find second largest element in an array.
- Write a C program to count total number of even and odd elements in an array.
- Write a C program to count total number of negative elements in an array.
- Write a C program to copy all elements from an array to another array.
- Write a C program to insert an element in an array.
- Write a C program to delete an element from an array at specified position.
- Write a C program to count frequency of each element in an array.
- Write a C program to print all unique elements in the array.
- Write a C program to count total number of duplicate elements in an array.
- Write a C program to delete all duplicate elements from an array.
- Write a C program to merge two array to third array.
- Write a C program to find reverse of an array.
- Write a C program to put even and odd elements of array in two separate array.
- Write a C program to search an element in an array.
- Write a C program to sort array elements in ascending or descending order.
- Write a C program to sort even and odd elements of array separately.
- Write a C program to left rotate an array.
- Write a C program to right rotate an array.
List of matrix programming exercises
- Write a C program to add two matrices.
- Write a C program to subtract two matrices.
- Write a C program to perform Scalar matrix multiplication.
- Write a C program to multiply two matrices.
- Write a C program to check whether two matrices are equal or not.
- Write a C program to find sum of main diagonal elements of a matrix.
- Write a C program to find sum of minor diagonal elements of a matrix.
- Write a C program to find sum of each row and column of a matrix.
- Write a C program to interchange diagonals of a matrix.
- Write a C program to find upper triangular matrix.
- Write a C program to find lower triangular matrix.
- Write a C program to find sum of upper triangular matrix.
- Write a C program to find sum of lower triangular matrix.
- Write a C program to find transpose of a matrix.
- Write a C program to find determinant of a matrix.
- Write a C program to check Identity matrix.
- Write a C program to check Sparse matrix.
- Write a C program to check Symmetric matrix.
No comments