#import void printPoint(double* point) { printf("[%lf, %lf]", point[0], point[1]); } void printPointerAsCoords(double * arr, int len) { for (int i = 0; i < len; i += 2) { printPoint(arr + i); if (i < len - 2) printf(", "); } printf("\n"); }