Function to perform queries on matrix m -- > number of rows n -- > number of columns ch -- > type of query x -- > number of row for query y -- > number of column for query
void queryMatrix ( int rows [ ] , int cols [ ] , int m , int n , char ch , int x , int y ) {