#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
#include<dos.h>
getkey();
void main()
{
clrscr();
int x; /* to save the value of scan code returned by getkey()*/
x=getkey();
printf("%d",&x);
getch();
}

getkey()
{
union REGS i,o;
while(!kbhit())
;
i.h.ah=0;
int86(22,&i,&o);
return(o.h.ah);
}

arrow keys k scan code return karna k liya ya function Dev C++ ma comple karta hoo to error show karta hain. please help me. what is wrong?