getx() function
getx function returns the X coordinate of current position.
Declaration of getx() function
int getx();
C program of getx()
#include <graphics.h>
#include <conio.h>
main()
{
int gd = DETECT, gm;
char array[100];
initgraph(&gd, &gm, "C:\\ TurboC3\\BGI");
sprintf(array, "Current position of x = %d",getx()); outtext(array);
getch();
closegraph();
return 0;
}