Multiple Initialization In C

#include
#include
/* using getch() */
main()
{
int ASCII,Scan;
/* multiple initialization */
clrscr();
printf("\n Press any key !");
ASCII=getch();
if(ASCII==0)
{
Scan=getch();
printf("\n Scan code of the key=%d",Scan);
}
printf("\n ASCII code of the key=%d",ASCII);


getch();
}

No comments:

Post a Comment