Program to generate ASCII code of a character#include <stdio.h>
#include <conio.h>
void main()
{
char character;
int ascii;
clrscr();
printf("\nEnter any character : ");
scanf("%c",&character);
ascii = character;
printf("\nASCII Code is : %d",ascii);
getch();
}
Output :
0 comments:
Post a Comment