Question: Harry wrote some code of a 2D array to store all the sales he made. Write a function that returns the sum of all elements

Harry wrote some code of a 2D array to store all the sales he made. Write a function that returns the sum of all elements in a two-dimensional array. Declare and initialize every veriable that was passed to it.

int totalSales(const int numbers[QUARTER][SALES], int rows)

C++. Extra credit if you turn in a main with your own made up numbers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!