wherey in c

wherey function return current vertical cursor position.

Declaration :- int wherey();

C programming code for wherey
#include<stdio.h>
#include<conio.h>

main()
{
   int y;

   printf("Hello\n");

   y = wherey();

   printf("Vertical cursor position from where this text appears = %d",y);

   getch();
   return 0;
}

Comments

Popular posts from this blog

Difference between asterisk and ampersand operators in c

kbhit in c