Quote:
|
Originally Posted by ahref
void main()
{
char x,y,z;
clrscr();
printf("Press any key");
x=getch();
if(x==0)
{
y=getch();
printf("\a");
printf("\nExtended Ascii code is %d",y);
}
else
{
printf("\nAscii Code is %d",x);
}
getch();
}
|
I have tried that but still problem not solved coz the statement
Code:
if(x==0)
{
y=getch();
printf("\a");
printf("\nExtended Ascii code is %d",y);
}
never gets executed. Every time I press F1, F2 etc. then first statement is executed & it prints
Ascii Code is ...