Friday 26 June 2015

-     To print ASCII value of Entered Character
      Code-

      #include<stdio.h>
      #include<conio.h>
       void main()
        {
        char a;
        clrscr(); 
     printf("Enter The Character Whose ASCII value You Want To            Print \t ");
       a = getchar();
       printf("\n The ASCII Value of Entered Character Is %d", a);
       getch();
}
   
      OUTPUT
       Enter The Character Whose ASCII value You Want To
        Print    a

       The ASCII Value of Entered Character Is 97








No comments:

Post a Comment