Create the function exactly as needed to make this main func
Solution
#include <iostream>
using namespace std;
int printSum(int list[4], int size);
int main() {
const int size = 4;
int myList[size]= {18, 52, 76, 101};
cout<<printSum(myList, size)<< endl;
return 0;
}
int printSum(int list[4], int size) {
int sum = 0;
for (int i = 0; i < size ; ++i)
{
sum = sum + list[i];
}
return sum;
}
![Create the function exactly as needed to make this main function work: int main() {const int size = 4; int myList[Size] = {18, 52, 76, 101}; cout Solution#incl Create the function exactly as needed to make this main function work: int main() {const int size = 4; int myList[Size] = {18, 52, 76, 101}; cout Solution#incl](/WebImages/36/create-the-function-exactly-as-needed-to-make-this-main-func-1106533-1761585763-0.webp)