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

  1. #include<graphics.h>
  2. #include<conio.h>
  3.  
  4. main()
  5. {
  6.    int gd = DETECT, gm;
  7.    
  8.    initgraph(&gd,&gm,"C:\\TC\\BGI");
  9.    
  10.    outtextxy(100, 100, "Outtextxy function");
  11.    
  12.    getch();
  13.    closegraph();
  14.    return 0;
  15. }