Finding The ASCII Value of Given Character In C Programming



#include <stdio.h>

int main()
{
    char ch;
    printf("\nEnter the character: ");
    scanf(" %c", &ch);
    printf("\nASCII value of %c is %d",ch,ch);

    return 0;
}

Comments