Find ASCII Value of a Character in C program
Find ASCII Value of a Character in C program with source code and output.
Before proceeding with this tutorial, you should have a basic understanding of Computer Programming terminologies. A basic understanding of any of the programming languages will help you in understanding the C programming concepts and move fast on the learning track.
Find ASCII Value of a Character
/* Find ASCII Value of a Character in C Program - CODE SCRATCHER */
printf("Enter a character: ");
scanf("%c",&c); /* Takes a character from user */
printf("ASCII value of %c = %d",c,c);
Enter a character: G
ASCII value of G = 71