Program to find a ASCII value of the given char.

Program to find a ASCII value of the given char


#include

int main(void)
{
char ch;

printf("\nEnter a character : ");
scanf("%c", &ch);

printf("\nCharacter = %c ASCII Value = %d", ch, ch);

return 0;
}




1 comment: