Well i m new to hardware programming in C. I tried to position
the curser at the required position but i m not confident about
this. The problem seems to be with video pages !!!!

Code:
 include <stdio.h>
#include <conio.h>
#include <dos.h>
#include<stdlib.h>



 void movetoxy()
 {
 
   union REGS inregs,outregs;
   inregs.h.ah=2;
   //fflush(stdin);
   //fflush(stdout);
    printf("\n Enter the row number");
    scanf("%d",&(inregs.h.dh));
    printf("\n Enter the coloumn number");
    scanf("%d",&(inregs.h.dl));
     

   /* i tried to make the following field 1,2 or comment it but of  
     no  use*/
      inregs.h.bh = 0;  //set the video page 
    int86(16,&inregs,&inregs);
} 

 int main(void)
 {
   clrscr();
   movetoxy();
   printf("Hello");
   return 0;
 }