To find the sum of row of a 2D array ( 4 X 4 matrix)i've inserted the formula in function count and the values are sent to function printout via reference variable. The problem is only the sum of the last row is printed out.Help please? Thanks
Every time your outer loop begins another pass, you reset rowTotal to zero. So the value passed back from count will only be the sum of the final 4 items.
Edit: And if you'd used a debugger to step through your code, you would have been able to see this for yourself.