函数传二维数组

现在主函数定义了一个二维数组x[10][10],需要传给一个子函数进行其他操作

int find(x[][10])//传二维数组时第二个要写出相应的大小

{

    ..........

}

int main()

{

    int x[10][10];

    find(x);//传首地址

    return 0;

}

emmm,这个是我自己在做题的过程中总结的,语言不够严谨

猜你喜欢

转载自blog.csdn.net/forTiffanyY/article/details/79791830