closed what does gotoxy functions in the following code?

–1 vote
asked Jun 29, 2018 by KAUSTAV (720 points)
closed Jun 30, 2018 by KAUSTAV
#define HLINE for ( i = 0 ; i < 79 ; i++ ) \
 printf ( "%c", 196 ) ;
#define VLINE( X, Y ) {\
 gotoxy ( X, Y ) ; \
 printf ( "%c", 179 ) ; \
 }

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

main( )
{
     int i, y ;
      clrscr;
      gotoxy ( 1, 12 ) ;
      HLINE
 for ( y = 1 ; y < 25 ; y++ )
      VLINE ( 39, y ) ;
}
closed with the note: the answer by the below user is sufficient

1 Answer

0 votes
answered Jun 29, 2018 by yash
It brings the cursor at that position. Here x will be position in row and y will be position in column. So 1,12 means in 1st row the code will show at 12th position(bits).
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...