Program to enter an ASCII code and display the character associated with it.
Source Code:
#include<stdio.h>
#include<conio.h>
int main()
{
int code;
char ch;
printf(" Enter the value of code:");
scanf("%d", &code);
ch=(char) code;
printf(" \n The equivalent character is:%c",ch);
return 0;
}
Output:
Follow our site for more program like this..
Comments
Post a Comment