Suppose in c++ we have an unknown numerical array, and the only thing we know is that all the elements are uniformly spaced. Is there a fast and short method to obtain the r