C Program to find the character with the ASCII code
C Program to find the associated character with the ASCII code. We will prompt the user to enter the ASCII code in the program.
C Program
#include<stdio.h> int main() { int code; char ch; printf("Enter the ASCII code:"); scanf("%d", &code); ch=(char) code; printf("The equivalent character of ASCII code %d is:= %c\n",code,ch); return 0; }
Sample Output
Enter the ASCII code:65
The equivalent character of ASCII code 65 is:= A