Printing Text in Graphics Using Outtextxy Function


Program :


Explanation :

  • This Function is Similar to Printf Statement.
  • Printf Prints Text on Screen in “Text Mode” while outtextxy() function Prints Text onto Screen in “Graphics Mode“.
  • This Function Accepts 3 Parameters.

Syntax :

Parameter Explanation
X_Co-ordinate Specifies X Co-ordinate
Y_Co-ordinate Specifies Y Co-ordinate
Text String/Text to be Printed On the Specified Co-ordinates