C Program to print the ASCII value of the entered character

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

Output:

C Program to print the ASCII of the entered character



Comments