Q:

getmaxy function in c

0

getmaxy function in c

getmaxy function returns the maximum Y coordinate for current graphics mode and driver.

Declaration: int getmaxy();

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#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;
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now