Write a program to input a character and find out his ASCII value in c
#include
#include
main()
{
char ch='A';
clrscr();
printf("\n The Character is:%c",ch);
printf("\n The ASCII value of this character is:%d",ch);
getch();
}
OUTPUT
The Character is : A
The ASCII value is this character is:65
No comments:
Post a Comment