wherex in c


wherex function return current horizontal cursor position.

Declaration :- int wherex();

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

main()
{
   int x;

   printf("Hello");

   x = wherex();

   printf("Horizontal cursor position from where this text appears = %d\n",x);

   getch();
   return 0;
}

Comments

Popular posts from this blog

Operators And Separators In C Language Operators in C Language:

Difference between asterisk and ampersand operators in c