Getarcoords function in C using graphics.h
Declaration: void getarccoords(struct arccoordstype *var);
getarccoords function is used to get coordinates of arc which is drawn most recently. arccoordstype is a predefined structure which is defined as follows:
struct arccoordstype
{
int x, y; /* center point of arc */
int xstart, ystart; /* start position */
int xend, yend; /* end position */
In the program, we have drawn an arc, and then we get the coordinates of its endpoints using getarccoords. Coordinates so obtained are displayed using outtextxy.
need an explanation for this answer? contact us directly to get an explanation for this answer