Question: 4 A Write a C program to read a matrix of size M x N and display. The program must find and 5 M display

4A Write a C program to read a matrix of size MxN and display. The program must find and
5M
display the location of all the elements in the matrix which are both the largest element in its column and the smallest element in its row. Replace all such elements with the row average. If no such elements exist, then display appropriate message.
\table[[1,2,3],[4,5,6],[7,8,9]]
4B With appropriate example program code, explain how to retuin multiple values from a
3M
function using pointers.
4C Write a complete C program to read and print a string using pointer.
2M
5A Write a C program to read a 2-dimensional integer array (matrix) arr of order mn and display the array. Use a recursive function r SoD(int)to find the sum of digits of an odd element (value) from the array read above and replace the element with its sum. Using pointers write another function dec2Bin (int *) that takes as a parameter the sum of digits of odd
5M
elements computed above, replace it with its binary equivalent in the same 2-dimensional array, and display the array in matrix form in the main program.
4 A Write a C program to read a matrix of size M

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!