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
You have to initialize sum to zero in sum_arr function.
sum
zero
sum_arr