C Passing Array to function

Passing array to the function name of the array is passed as actual arguments and array variables with subscript are passed as formal arguments.
There are three different ways to do pass array to a function are:

First:

Second:

Third:

Program to calculate the average by passing an array to a function:

Output: