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
Get step-by-step solutions from verified subject matter experts
