Search Here

C program to find ASCII value of a given character


/* C program to find ASCII value of a given character */

void main()
{
    char c;
    printf("Enter a character: ");
    scanf("%c",&c);
    printf("ASCII value of %c is: %d",c,c);
}



Output

No comments:

Post a Comment