C PROGRAM TO FIND ASCII VALUE OF A KEY

#include<stdio.h>
main()
 {
  char c;
  printf("press any key:\n");
  c=getch();
  printf(" ascii in decimal system: %d\n",c);
  printf("ascii in hex system: %x \n",c);
  printf("ascii in octal system:%o \n",c);
 }

TRY THIS FRENZZ.....
Share on Google Plus
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment