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; }

22nd Sep 2016, 10:14 AM
Thuy Cao Nguyen Anh
Thuy Cao Nguyen Anh - avatar
2 Réponses
+ 2
int foo(int arr[], int size) ... mult = 1; ... mult *= arr[x]; ... return mult; ...
22nd Sep 2016, 10:35 AM
Zen
Zen - avatar
0
Oh thanks!
22nd Sep 2016, 2:31 PM
Thuy Cao Nguyen Anh
Thuy Cao Nguyen Anh - avatar