 Hello friends. I am Sanjay Gupta. In this video, I am going to demonstrate you the difference between out text and out text XY functions available in graphics.h header file. I will be demonstrating this example with the help of Turbo C. Before starting, you can note my information. You can subscribe my YouTube channel if you want to learn programming. You can download my app TechMS that is available on Google Play. You can note my email ID or WhatsApp number if you want to communicate to me. So in this demonstration, I will be comparing two functions out text and out text XY. For demonstration purpose, I am using two header files. First one is graphics.h and second one is corneor.h. Then I am implementing main function. In main function, I am declaring a variable gd. It is initialized with detect and second variable is gm. gd stands for graphics driver and gm stands for graphics mode. The detect will automatically initialize the required drivers to this variable. Now we have to initialize the graphics using init graph function. Inside this function, I have to pass three arguments. First one is m%gd. Second one is m%gm. And third one is path of graphics library. That is c, tc and bgi. So first argument is mentioning graphics driver. Second argument is indicating graphics mode and third argument is indicating graphics library path. Now if you want to display anything on console screen, then you can use out text. So I am displaying name of my YouTube channel using out text. To hold the screen, you can use getch and at last you can use return zero because return type of main function is integer. Now this out text function will display the text from zero coordinates or you can say where your cursor is currently available. So now I am first saving this code. I am compiling it and I am executing it. You can see the output. It is showing the text right from top left corner. If you want to change the position of the text, then you can use another function that is out text xy. This time I am passing x and y coordinates and I am writing name of my app. This time that is tachemiz. Again I am saving this code, compiling the code and I am executing it. You can see the difference. Sanjay Gupta underscore tax school is displayed at zero, zero coordinate because out text function doesn't follow coordinates. It plays the content where your current cursor position is and tachemiz is available at 50, 50 coordinates because out text xy function is used. So with the help of these two functions, you can place your desired text on console. One places a text on the position of cursor and another places the text on xy coordinate position which you can pass inside this function. So I hope you have understood the difference between these two functions. You can use these two functions as per your requirement. If you don't want to follow the xy position and you want to place the text on your cursor position, then you can use out text. But if you want to place the content on desired position, that means on x or y coordinates, then you can use out text xy function. Both are available in graphics.h header file. That's why I have included graphics.h header file. At last, you can use another function that is close graph. Close graph function is used to close the graphs that you have initialized using init graph function. You can also use this function at the end of the main function. I hope you have understood differences between out text and out text xy. If you want to watch more programming related videos, you can follow my these information which I have already discussed with you. Thank you for watching this video.