Coding

gety function in c

gety function in c - c programing - gety function returns the y coordinate of current position. Declaration :- int gety();

gety function returns the y coordinate of current position.

Declaration :- int gety();

C programming source code for gety

#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;
}
READ  outtextxy function in c

About the author

Venkatesan Prabu

Venkatesan Prabu

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.

Add Comment

Click here to post a comment