Get premium membership and access questions with answers, video lessons as well as revision papers.
Got a question or eager to learn? Discover limitless learning on WhatsApp now - Start Now!

Write a C function that computes that maximum of a specific row R in a 2D array of size 6 by 5.

      

Write a C function that computes that maximum of a specific row R in a
2D array of size 6 by 5.

  

Answers


Anthony
int MaxOfRow( int a[][5], int ROWS, int searched_row)
{ int max;
max=a[searched_row][0];
for (int c=0; c<5;c++)
if (a[searched_row][c]>max)
max=a[searched_row][c];
return max;
}
anmwat answered the question on March 5, 2019 at 10:33


Next: What will be the output of the following c program?
Previous: Describe the action of aqueous ammonia on solution of metallic salts.

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions