write initialize function and addPoint. Thank you!Sifndef GEOMETRY_H $define GEOMETRY_H typedef struct{ int num; //point number int x, Y; //x, y coordinate of point } PointT; typedef struct{ int size; int capacity; PointT *points; } ShapeT; allocates memory for an array of ‘capacity’ points, and for a “ShapeT’ ‘object’ (array of length one) that stores a pointer to the array and keeps track * of the current size (set to zero by this function) and the capacity. Returns NULL is memory allocation # fails Shaper initialize (int capacity); * adds a point to the array referred to by shape’. *This function returns 1 if it successfully adds a point, * or returns 0 if it can’t add a point because the array is full. * / int addPoint (Pointt point, Shaper *shape) ; * returns a point with label ‘num from the array referred to by shape. Note that we are assuming that all points have distinct labels. If the point with label ‘num’ isn’t in the * array, then ‘get Point’ returns a point with label * num = -1° and ‘x=0, y=0. Show transcribed image text Sifndef GEOMETRY_H $define GEOMETRY_H typedef struct{ int num; //point number int x, Y; //x, y coordinate of point } PointT; typedef struct{ int size; int capacity; PointT *points; } ShapeT; allocates memory for an array of ‘capacity’ points, and for a “ShapeT’ ‘object’ (array of length one) that stores a pointer to the array and keeps track * of the current size (set to zero by this function) and the capacity. Returns NULL is memory allocation # fails Shaper initialize (int capacity); * adds a point to the array referred to by shape’. *This function returns 1 if it successfully adds a point, * or returns 0 if it can’t add a point because the array is full. * / int addPoint (Pointt point, Shaper *shape) ; * returns a point with label ‘num from the array referred to by shape. Note that we are assuming that all points have distinct labels. If the point with label ‘num’ isn’t in the * array, then ‘get Point’ returns a point with label * num = -1° and ‘x=0, y=0.

## Expert Answer

Answer to Sifndef GEOMETRY_H $define GEOMETRY_H typedef struct{ int num; //point number int x, Y; //x, y coordinate of point } Poi…