You are here

wherey in c

wherey function return current vertical cursor position.

Declaration: int wherey();

C programming code for wherey

  1. #include<stdio.h>
  2. #include<conio.h>
  3.  
  4. main()
  5. {
  6.    int y;
  7.  
  8.    printf("Hello\n");
  9.  
  10.    y = wherey();
  11.  
  12.    printf("Vertical cursor position from where this text appears = %d",y);
  13.  
  14.    getch();
  15.    return 0;
  16. }