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 searches for value key in a a 2D array of size 6 by 5. The function should return true if found false otherwise?

bool SearchArray (int a[][3], int ROWS, int key)
 {
 bool found=false;
 for ( int r=0; r<ROWS; r++)
 for ( int c=0; c<3;c++)
 if (a[r][c]==key)
 {
 printf(" found at location [%d,%d] \n",r,c);
 return true;
 }
 return found;
 }

Do you know that?

Software developers, virtual assistants and designers are most likely to earn more as a self-employed professional than as an employee. Next

Articles:

Popular:

Fast Payments
Payoneer sing up to get free 
$25