Printing ASCII value of character in decimal

//Printing ASCII value of character in decimal
#include<stdio.h>
#include<conio.h>
int main()
{
char a;
clrscr();
printf("Enter a Character\n");
scanf("\n%c",&a);
printf("\nASCII value in decimal %d",a);
getch();
return 0;
}


To Run this Program Copy it in text editor and save as .c
Then double click on it and then it will get opened in your compiler.
Click on run.

No comments:

Post a Comment