How to pass multi-dimensional array to function?

后端 未结 3 2073
猫巷女王i
猫巷女王i 2021-01-24 12:06

I am trying to pass a 2D array of variable size to a function to print it.but the code doesn\'t show the exact result of sum.

this is the code:

#include         


        
3条回答
  •  梦谈多话
    2021-01-24 12:33

    There is no technical problem with passing, but in sum_arr,
    your variable sum does not start at 0 (but some strange value).

提交回复
热议问题