Explanation:-
In this problem we are passing the value of an array using reference(passing address of the variable) so for this problem we create a function after that we took an array value by user after taking an array value we pass the address of an array to function(we pass the first index address and size of an array) and put the some condition statements in function that help us to calculate the average of an array. After calculating the average of an array we return the average to function and int main function we print the value of an array calculated after average.
Output:
Enter The Size Of Array
6
Enter The Array Elements
23
56
89
12
45
78
Average Value of An Array Is: 50.5
need an explanation for this answer? contact us directly to get an explanation for this answer