Question: // This program demonstrates an array being passed to a function. #include using namespace std; void showValues (int [l, int) I/Function prototype const int ARRAY


// This program demonstrates an array being passed to a function. #include using namespace std; void showValues (int [l, int) I/Function prototype const int ARRAY SIZE- 100; int main () int numbers [ARRAY SIZE] (5, 10, 15, 20, 25, 30, 35, 40; showValues (numbers, 8) return 0; /Definition of function showValue. // This function accepts an array of integers and* // the array's size as its arguments. The contents * // of the array are displayed. void showValues (int nums [], int size) for (int index 0; index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
