C Program to find the ASCII value of a character
In this program, You will learn how to find the ASCII value of a character in c.
Characters are: A B C D
ASCII value: 65 66 67 68
Example: How to find ASCII value of a character in c.
#include<stdio.h>
int main() {
char ch;
printf("Enter any character:");
scanf("%c", &ch);
printf("ASCII value is:%d", ch);
return 0;
}
Output:
Enter any character:A
ASCII value is:65