Q:

gety function in c using graphics.h

0

gety function in c using  graphics.h

gety function returns the y coordinate of current position.

Declaration: int gety()

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, y;
   char array[100];

   initgraph(&gd, &gm, "C:\\TC\\BGI");

   y = gety();
   
   sprintf(array, "Current position of y = %d", 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