I've write a program to rotate 2d matrix(arrow clockwise) now i try to use functions rotate and print,to separate the program to two section. one section will rotate, second will print. but when i run i get an error i think related to function declaration/call please see what is the problem:
    void DisplayArray2D(char arr[][7]);
    void RotateArray2D(char arr[][7]);
int main() {
    int m=7,n=7;
    //int p,q;
    int temp;
    int i,j;
    char arr[7][7] = {
                     { '*',' ',' ',' ',' ',' ',' '},
                     { '*','*',' ',' ',' ',' ',' '},
                     { '*','*','*',' ',' ',' ',' '},
                     { '*','*','*','*','*','*','*'},
                     { '*','*','*',' ',' ',' ',' '},
                     { '*','*',' ',' ',' ',' ',' '},
                     { '*',' ',' ',' ',' ',' ',' '},
                                                  };
  RotateArray2D(arr);
  DisplayArray2D(arr);
    void RotateArray2D(char arr[][7]) ;
    for(i = 0; i < m; i++)
    {
        for (j = i + 1; j < n; j++)
        {
            temp = arr[i][j];
            arr[i][j] = arr[j][i];
            arr[j][i] = temp;
        }
    }
    for (i = 0; i < m; i++)
    {
        for (j = 0; j < n / 2; j++)
        {
            temp = arr[i][j];
            arr[i][j] = arr[i][n - 1 - j];
            arr[i][n - 1 - j] = temp;
        }
    }
  void DisplayArray2D(char arr[][7]);
 {
    for (i = 0; i < n; i++)
    {
        for (j = 0; j < n; j++)
            print f("%c ", arr[i][j]);
        print f("\n");
    }
    print f("\n");
    return 0;
}
    }