#include #include #include #define NUM_PTS 3 /* structure definitions */ struct point { float x; float y; }; void get_point( struct point * ); void print_point(const struct point * p ); int main () { struct point * point_arr = (struct point *) malloc(NUM_PTS * sizeof(struct point )); int i; printf("Enter 3 points ... \n\n"); /* Prompt user to input points */ for (i=0;ix); printf("Value Y: "); scanf("%f",&p->y); printf("\n"); return; } void print_point( const struct point * p ) { printf("(%.2f, %.2f)\n",p->x,p->y); }