Iterate Through Pointer Array Cppreference Cmath C