关于二维数组指针的问题
这里有两个函数:tag是自定义的结构体
tag **fun1()
{
tag *block[10][10];
......
......
return *block;
}
BOOL fun2(tag *block[][10],int subscript)
{
......
}
main()
{
tag **pBlock;
pBlock = fun1();
fun2(pBlock, 10);
......
}
编译时会有2个warning:
1.'function':struct tag *(*)[10]' differs in levels of indirection from 'struct tag ** '
2.'fun2' : different types for formal and actual parameter 1
请问有什么办法可以改掉warning??多谢!