Question 5: Write a function (arrays) [6]
Write a C++ function that satisfies all the following specifications:
Sample solution:
void revPrint(float arr[], int size)
{
for (int pos = size-1; pos >= 0; pos--) {
printf("%g\n", arr[pos]);
}
}
|