Menu
  • Algorithm
  • Challenges
  • Courses
  • Subject
  • Tool Box
Login Get Started
Algorithm Room
  • Algorithm
  • Challenges
  • Courses
  • Subject
  • Tool Box
Login Get Started

arc()

bar()

bar3d()

circle()

cleardevice()

closegraph()

drawpoly()

ellipse()

fillellipse()

fillpoly()

floodfill()

getarccords()

getbkcolor()

getcolor()

getdrivername()

getimage()

getmaxcolor()

getmaxx()

getmaxy()

getpixel()

getx()

gety()

graphdefaults()

grapherrormsg()

imagesize()

line()

lineto()

linerel()

moveto()

moverel()

outtext()

outtextxy()

pieslice()

putimage()

putpixel()

rectangle()

sector()

setbkcolor()

setcolor()

setfillstyle()

setlinestyle()

settextstyle()

setviewport()

textheight()

textwidth()

  1. Home
  2. Computer Graphic
  3. Functions

gety() function

gety function returns the y coordinate of current position. 

Declaration of gety() function

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:\\ TurboC3\\BGI"); 
y = gety();
sprintf(array, "Current position of y = %d", y); outtext(array);
getch(); 
closegraph(); 
return 0;
}

Please login to Continue

  • Login Login
  • Sign Up Sign Up
Google Google GitHub GitHub
OR
Forgot Password?
Google Google GitHub GitHub
OR
  • 0x1999 Team
Algorithm Room
  • About
  • Privacy Policy
  • Terms of Service

© 2026 Algorithm Room. All rights reserved