gety() function is used to fetch the Y-coordinate of the current position.
- For better understanding go through the program:
int gd=DETECT, gm,y;
sprintf(a,”current position of Y coordinate is %d”,y);
Above program would display the current position of Y-coordinate. It shows a message like “current position of Y coordinate is —“.