Program 4: Accept a character from the user and display its ascii value. #include<stdio.h> void main() { char ch; printf(...

C Program to find ASCII value of any character.



Program 4: Accept a character from the user and display its ascii value.

#include<stdio.h>
void main()
{
char ch;
printf("Enter Character:");
scanf("%c",&ch);
printf("\nThe ASCII value of  %c is %d",ch,ch);
}

Output
Enter The Character: m
The ASCII value of  b is  98 ✔

0 coment�rios:

HTML5 CSS3 TUTORIAL FOR BEGINNERS