How To Use Gotoxy In C Language

[Solved] How To Use Gotoxy In C Language | C - Code Explorer | yomemimo.com
Question : how to use gotoxy in c language

Answered by : vivacious-vicua-0xd1j5ymyva3

#include<srdio.h>
#include<windows.h>
void gotoxy(short x, short y)
{ COORD pos = {x,y};//sets co-ordinates in(x,y) SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),pos);
}
int main
{ gotoxy(10,12); printf("Aman Yadav"); return 0; } 

Source : | Last Update : Tue, 21 Dec 21

Answers related to how to use gotoxy in c language

Code Explorer Popular Question For C