Pass 2d array to function in C?

后端 未结 3 1561
半阙折子戏
半阙折子戏 2021-01-22 14:28

I know it\'s simple, but I can\'t seem to make this work.

My function is like so:

 int GefMain(int array[][5])
 {
      //do stuff
      return 1;
 }
         


        
3条回答
  •  忘掉有多难
    2021-01-22 15:16

    It compiles rightly even with -std=c99 -pedantic options. And it looks right anyway... Is it really the code you want we check? Compiler you're using...?

提交回复
热议问题