Problem: write a function that returns a pointer to the maximum value of an array of double.
I have written the code that return the maximum, but I don't know how to turn it into a pointer and return it =.=
#include <iostream>
#include <string>
using namespace std;
const double * maximum(const double a[], int size);
const double * maximum(const double a[], int size)
{
double * result;
double biggest = 0;
if (size == 0) return 0;
else{
for(int i = 0; i < size; i++){
if(a[i] > biggest) biggest = a[i];}}
return result;
}