write a function in c++ which accepts a 2D array of integer and its size as arguments and displays the elements of middle row and the middle column
void f(int **a, int length){
& for (int i = 0 ; i < length ; i++){
cout<<a[length/2][i]<<' ';
& } cout<<endl;
& for (int i = 0 ; i < length ; i++){
cout<<a[i][length/2]<<' ';
& }&
}