Thursday 3 October 2013

Finding ASCII value of a character using C

#include<stdio.h>
main()
{
char c;
printf("Enter the character whose ASCII value is to be known: ");
scanf("%c",&c);
printf("\n The ASCII value of %c is %d \n",c,c);
}

No comments:

Post a Comment