Theory
Write a program in C to find the maximum and minimum element in an array.
#include
int main()
{
int a[10][10], transpose[10][10], r, c, i, j;
printf("Enter rows and columns: ");
fflush(stdout);
scanf("%d %d", &r, &c);
// Assigning elements to the matrix
printf("\nEnter matrix elements:\n");
for (i = 0; i < r; ++i)
{
for (j = 0; j < c; ++j)
{
printf("Enter element a%d%d: ", i + 1, j + 1);
fflush(stdout);
scanf("%d", &a[i][j]);
}
}
// Displaying the matrix a[][]
printf("\nEntered matrix: \n");
for (i = 0; i < r; ++i)
{
for (j = 0; j < c; ++j)
{
printf("%d ", a[i][j]);
if (j == c - 1)
{
printf("\n");
}
}
}
// Finding the transpose of matrix a
for (i = 0; i < r; ++i.... Show MoreFrom Arrays · C programming
Write a program in C to find the maximum and minimum element in an array.
Write a program in C to sort elements of an array in ascending order.
Write a program in C to delete an element at desired position from an array.
Write a program in C to insert New value in the array.
Write a C program to find the determinant of n*n matrix.
Write a program in C for multiplication of two square Matrices.
Write a program in C to separate odd and even integers in separate arrays.
Write a C Program to Add Two Matrices Using Multi-dimensional Arrays.