Theory
Write a program in C to sort elements of an array in descending order.
#include
void enterData(int first[][10], int second[][10], int r1, int c1, int r2, int c2);
void multiplyMatrices(int first[][10], int second[][10], int multResult[][10], int r1, int c1, int r2, int c2);
void display(int mult[][10], int r1, int c2);
int main()
{
int first[10][10], second[10][10], mult[10][10], r1, c1, r2, c2;
printf("Enter rows and column for the first matrix: ");
fflush(stdout);
scanf("%d %d", &r1, &c1);
printf("Enter rows and column for the second matrix: ");
fflush(stdout);
scanf("%d %d", &r2, &c2);
// Taking input until columns of the first matrix is equal to the rows of the second matrix
while (c1 != r2)
{
printf("Error! Enter rows and columns again.\n");
printf("Enter rows and columns for the first matrix: ");
.... Show MoreFrom Arrays · C programming
Write a program in C to sort elements of an array in descending order.
Write a program in C to find the maximum and minimum element in an array.
Write a C Program to Add Two Matrices Using Multi-dimensional Arrays.
Write a C program to find the determinant of n*n matrix.
Write a program in C to insert New value in the array.
Write a program in C to delete an element at desired position from an array.
Write a program in C to separate odd and even integers in separate arrays.
Write a C program to find transpose of a matrix.