very new to programming. Trying to read into a function an array of any size... Can't seem to get the code working... "array type has incomplete element type 'int[]'
 void printArray(int array[][], int size, int *sumArrayRight, int *sumArrayBot){
        int i, j;
        for(i = 0; i <size; i++){
            for(j = 0; j <size; j++){
                if(array[i][j] != -1)
                    printf("%3d ", array[i][j]);    
                else
                    printf("  ~ ");
                if(j == size-1)
                    printf("%3d", *(sumArrayRight+i));
            }
            printf("\n");
        }
        for(i = 0; i < size; i++)
            printf("%3d ", *(sumArrayBot+i));
        printf("\n");
    }
It only works if i give the array a size already eg/ int array[10][10] but subsequently that only works if the 2D array being input is of size 10...
 
    