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();
gety function returns the y coordinate of current position.
Declaration :- int 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;
}
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