Program:-
#include<stdio.h>
void main()
{
char c;
printf("Enter a character : ");
scanf("%c",&c);
printf("\n\nASCII value of %c = %d",c,c);
printf("\n\nCoding is interesting !\n\n");
}
Output:-
Enter a character : a
ASCII value of a = 97
Coding is interesting !
Program File:(click the following .c file to get the program file)
Comments
Post a Comment