C Program to print character using ASCII value


In this program, You will learn how to print character using ASCII value in c.


Characters are: A B C D

ASCII value: 65 66 67 68

Example: How to print character using ASCII value in c.

#include<stdio.h>

int main() {

   int asc;

   printf("Enter any ASCII value:");
   scanf("%d", &asc);

   printf("Character value is:%c", asc);

   return 0;
}

Output:

Enter any ASCII value:65                                                                                                               
Character value is:A