Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

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

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;
 }