ASCII code of any character in C | C Program to Print ASCII code of Entered character| ASCII of any character in C

ASCII code of any character in C | C Program to Print ASCII code of Entered character| ASCII of any character in C





#include
#include
int main()
{
    char i;
    printf("Enter the character to get its ASCII code.\n");
    scanf("%c",&i);
    printf("\nASCII code of `%c` is %d\n\n",i,i);
    printf("\n");
    return 0;
}

No comments:

Post a Comment