I just downloaded a document containing some pointers exercises. The statement of One of its questions is as follows:
Write a function that returns a pointer to the maximum value of an array of double's. If the array is empty, return NULL.
double* maximum(const double* a, int size);
It confused me a little. I am wondering what is meant by an empty array? Does it mean that all elements of the array are 0 or 0.0? Or if it means the number of elements in the array is zero? If the case is second then is it possible to declare such an array?
Or there is some third case??
Sorry for such an awkward question though ..... :icon_confused:
Thanks for your time!!!!!