void myFunction(int *param) {
.
.
.
}
double getAverage(int arr[], int size) {
int i, sum = 0;
double avg;
for (i = 0; i < size; ++i) {
sum += arr[i];
}
avg = double(sum) / size;
return avg;
}
void myFunction(int param[10]) {
.
.
.
}
returnType functionName(dataType arrayName[arraySize]) {
// code
}
void myFunction(int param[]) {
.
.
.
}
//passing array as a pointer.
void myFunction(int *param) {
.
.
.
}
void myFunction(int param[10]) {
.
.
.
}