 Hello friends, I am Sanjay Gupta. In this video, I am going to demonstrate you the use of that MaxX function that is available in Graphics.h header file. I am demonstrating it with the help of TurboC. Before starting, you can subscribe my YouTube channel by clicking on the link which is available at the bottom right corner of this video. You can download my app TechEmense that is available on Google Play. You can connect with me by following these details which are available in front of you. Now coming on to the topic, I have included two header files, corneor.h and graphics.h. Then main function is defined. Inside main function, two variables gd and gm are declared. gd stands for graphics driver and gm is for graphics mode. gd is initialized with detect, so it will automatically detect the required graphics driver. Then third variable MaxX is declared. Then character array which is named as array is declared. Then initGraph function is called. Here gd, gm variables are passed and a path for graphics library that is C, T, C and VGI is passed. Then in this statement, I have used the function getMaxX. This function find out maximum x coordinate for current graphics mode and driver and that value will be assigned into MaxX variable. Now using sprintf, I am assigning this string into this array. So it is containing maximum x coordinate equals to %d. This %d will be replaced by the value of MaxX and the complete string will be assigned into this array. Now with the help of outtext, this array will be displayed on console. Then getCS function for holding the screen. Then closeGraph will deallocate the graphics which is initialized with initGraph function. Then return zero because return type of main is integer. That's why return zero statement is return here. So this is the complete explanation of the code. Now I am going to execute this code so that we can identify maximum x coordinate for the current graphics mode and driver. Using getMaxX function, you can see the output maximum x coordinate equals to 639 is displayed on console. So this is identified by using this function getMaxX. So getMaxX is a predefined function is in graphics.h header file which identified the maximum x coordinate for the current graphics mode and driver. I hope you have understood the demonstration how to identify maximum x coordinate. If you want to watch more programming related videos, you can subscribe my YouTube channel. Thank you for watching this video.