i need some help with C+ and im using the program atom
Q2: Write a function that calculate the sum of a 2D array. (only need to write the function code) Answer: int sum(int al[10], rowsize, columsize) Show transcribed image text Q2: Write a function that calculate the sum of a 2D array. (only need to write the function code) Answer: int sum(int al[10], rowsize, columsize)
Solution
int sum(int arr[][10],rowsize,columsize)
{
int total=0;
for(int i=0;i<rowsize;i++)
{
OR
OR