Tuesday 23 April 2013

C Program to Find ASCII Value of a Character

#include <stdio.h>
#include <conio.h>
int main()
{
char c;
printf("Enter a character: ");
scanf("%c",&c); /* Takes a character from user */
printf("ASCII value of %c = %d",c,c);
getch();
return 0;
}

No comments:

Post a Comment