ASCII value of a Character - Devbhoomi

FREE JOB ALERT & ONLINE TUTORIALS

Hot

Post Top Ad

Monday 6 November 2017

ASCII value of a Character

#include <stdio.h>

int main()
{
    char c;
    printf("Enter a character: ");
    scanf("%c", &c);
    printf("ASCII value of %c = %d", c, c);
    return 0;
}
OUTPUT
Enter a character: A
ASCII value of A = 65

No comments:

Post a Comment

Post Top Ad