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