Table of Contents

gotoxy

void gotoxy( int x, int y);

description of gotoxy

places cursor at a desired location on screen.

#include<stdio.h>
#include<conio.h>
 
int main( void )
{
   int x, y;
   x = 42;
   y = 42;
   clrscr();
   gotoxy(x, y);
 
   printf("gotoxy jumps to cursor position x42 y42.");
 
   getch();
   return 0;
}

output of gotoxy c example

gotoxy example output in cmd