0
Please help me! About the multiplication product of the array elements
Fill in the blanks to calculate and return the multiplication product of the array elements. foo(int arr[], int size) { int mult = ; for (int x = 0; x < size; x++) { mult = arr[x]; } mult; }
2 Réponses
+ 2
int foo(int arr[], int size)
...
mult = 1;
...
mult *= arr[x];
...
return mult;
...
0
Oh thanks!