ASCII Value of a character

C Program to Convert a character to its equivalent ASCII Value.

#include<stdio.h>

int main()
{

    char ch;


    printf("Enter a character: ");


    scanf("%c",&ch);


    printf("\nThe ASCII Value of %c is %d\n",ch,ch);


    return 0;


}




Post a Comment

0 Comments