You are here

outtextxy function in c

outtextxy function display text or string at a specified point(x,y) on the screen.

Declaration: void outtextxy(int x, int y, char *string);
x, y are coordinates of the point and third argument contains the address of string to be displayed.

C programming code for outtextxy

#include<graphics.h>
#include<conio.h>

main()
{
   int gd = DETECT, gm;
   
   initgraph(&gd,&gm,"C:\\TC\\BGI");
   
   outtextxy(100, 100, "Outtextxy function");
   
   getch();
   closegraph();
   return 0;
}