Im trying to create a function in C where it takes an array and
size and returns the largest absolute value in the array (either
negative or positive) using only stdio.h. Any help
would be greatly appreciated!
Ex: if the array is { -2.5, -10.1, 5.2, 7.0}, it should return
-10.1
Ex: if the array is {5.1, 2.3, 4.9, 1.0}, it should return
5.1.
double getMaxAbsolute(double array[], int size)
{
double max = array[0];
double abs[size];
for...