The header file graphics.h contains getmaxy() function which returns the maximum Y coordinate for current graphics mode and driver.
Syntax :
int getmaxy();
Below is the implementation of getmaxy() function:
#include <graphics.h>
#include <stdio.h>
int main()
{
int gd = DETECT, gm;
char arr[100];
initgraph(&gd, &gm, "" );
sprintf (arr, "Maximum Y coordinate for current "
"graphics mode And driver = %d" , getmaxy());
outtext(arr);
getch();
closegraph();
return 0;
}
|
Output :
Last Updated :
25 Jan, 2018
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...