Gotoxy() Function in C Language

What is Gotoxy() in C Language ?

GotoXY is a function that positions the cursor at (X,Y), X in horizontal, Y in vertical direction relative to the origin of the current window. The origin is located at (1,1), the upper-left corner of the window.

GotoXY function is defined in conio.h.

Example :-

[c]

#include<stdio.h>
#include<conio.h>

int main()
{

clrscr();
gotoxy(10,20);
printf("Hi Welcome to BCA HUB");

getch();

}

[/c]

Share

About the Author

Akash Padhiyar

Visit Website

2 Comments

  1. varshil shah June 5, 2011

    very good knowledge.i like it……………………

  2. Author

    Thank You Varshil :)

Leave a Comment

Your email address will not be published. Required fields are marked *

*