参数名称省略错误?

Aks*_*hah 7 c arrays methods function

我在尝试调用方法时遇到错误:

int box(int rows, int cols, int [rows][cols])
Run Code Online (Sandbox Code Playgroud)

从使用此调用的main方法:

box(arrayDimensions, arrayDimensions, array);
Run Code Online (Sandbox Code Playgroud)

但我不确定问题是什么.

谢谢.

Min*_*n91 17

int box(int rows, int cols, int [rows][cols])
Run Code Online (Sandbox Code Playgroud)

需要是

int box(int rows, int cols, int something[rows][cols])
Run Code Online (Sandbox Code Playgroud)