VOOZH about

URL: https://www.geeksforgeeks.org/c/outtextxy-function-c/

⇱ outtextxy() function in C - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

outtextxy() function in C

Last Updated : 5 Dec, 2019
The header file graphics.h contains outtextxy() function which displays the text or string at a specified point (x, y) on the screen. Syntax :
void outtextxy(int x, int y, char *string);

where, x, y are coordinates of 
the point and, third argument contains
the address of string to be displayed.
Examples :
Input : x = 200, y = 150, 
 string = "Hello Geek, Have a good day !"
Output : 👁 Image
Input : x = 150, y = 250, string = "GeeksforGeeks is the best !" Output : 👁 Image
Below is the implementation for outtextxy() function: Output :
👁 Image
Comment