The function below is used to find the average of the datastored in the array. P
ID: 3617797 • Letter: T
Question
The function below is used to find the average of the datastored in the array. Please complete the function body insidethe skeleton code given. You MUST use a for loop.
a. int average_array(int array1[], int size){
}
The function below is used to swap the values of two integers. Call these integers first_num and second_num. Pleasecomplete the function definition inside the skeleton codegiven. Note that the formal parameters have been leftblank: what type of passing procedure needs to beused?
b. voidswap( , ) {
}
The function below is used to compute the product of threevariables of type double. Please complete the functiondefinition inside the skeleton code given. This is a voidfunction, so the product should be output to the screen. Inaddition, declare variables and create a function call insidemain. The formal parameters and actual parameters must havedifferent names.
c . void compute(double a, double b, double c){
}
int main()
{
}