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
There is no technical problem with passing, but in sum_arr, your variable sum does not start at 0 (but some strange value).