getmaxy() function
getmaxy function returns the maximum Y coordinate for current graphics mode and driver.
Declaration of getmaxy() function
int getmaxy();
C program for getmaxy()
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm, max_y;
char array[100];
initgraph(&gd,&gm,"C:\\ TurboC3\\BGI");
max_y = getmaxy();
sprintf(array, "Maximum Y coordinate for current graphics mode and driver is =
%d.",max_y);
outtext(array);
getch();
closegraph();
return 0;
}