[solved]-Given Array Integer Please Complete Function Multiply Function Accepts First Memory Addre Q39038609
Given an array of integer, please complete a functionmultiply(). The function accepts the first memoryaddress of an array and the size of an array as parameters andreturns the multiplication of all the elements. In order to get afull score, the function must use a loop toiterate through each element of an array.
Pseudo code example:
multiply([ 1, 2, 3], 3) → 6
multiply([1, 1, 4 ,2], 4) → 8
multiply([7, 0, 0, 7, 0, 7], 6 ) → 0
C program:
#include<stdio.h>
int multiply(int * arr, int array_size);
int main()
{
int arr[] = { 1, 2, 3,4, 5 }; // input example
int result =multiply(arr, 5);
printf(“result %d “,result);
return 0;
}
int multiply(int * arr, int array_size)
{
// assumingthat your code will be integrated into this part.
}
Expert Answer
Answer to Given an array of integer, please complete a function multiply(). The function accepts the first memory address of an ar… . . .
OR

