VOOZH about

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

⇱ outtext() function in C - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

outtext() function in C

Last Updated : 6 Dec, 2019
The header file graphics.h contains outtext() function which displays text at current position. Syntax :
void outtext(char *string);
Examples :
Input : string = "Hello Geek, Have a good day !"
Output : 👁 Image
Input : string = "GeeksforGeeks is the best !" Output : 👁 Image
Note : Do not use text mode functions like printf while working in graphics mode. Ensure that the text doesn't go beyond the screen while using outtext. Below is the implementation for outtext() function: Output :
👁 Image
Comment