getmaxy function in c
getmaxy function returns the maximum Y coordinate for current graphics mode and driver.
Declaration :- int getmaxy();
C program for getmaxy
getmaxy function returns the maximum Y coordinate for current graphics mode and driver.
Declaration :- int getmaxy();
#include<graphics.h>
#include<conio.h>
main()
{
int gd = DETECT, gm, max_y;
char array[100];
initgraph(&gd,&gm,"C:\\TC\\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;
}
Wikitechy Founder, Author, International Speaker, and Job Consultant. My role as the CEO of Wikitechy, I help businesses build their next generation digital platforms and help with their product innovation and growth strategy. I'm a frequent speaker at tech conferences and events.
Our site uses cookies. By using this site, you agree to the Privacy Policy and Terms of Use.