C Program to print character using ASCII value


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


Characters is: A B C D

ASCII value: 65 66 67 68


Example: How to print character using ASCII value in c

Run it Now
#include<stdio.h>

int main() {

   int asc;

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

   printf("\nThe Character Value is :%c", asc);

   return 0;
}

Output:

Enter Any ASCII value:65
The Character Value is :A