Q2 Write Function Calculate Sum 2d Array Need Write Function Code Answer Int Sum Int Al 10 Q37031688

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],

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.