Saturday, April 6, 2013

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;
}

No comments:

Post a Comment