#include<stdio.h>
void main()
{
int i;
printf("Enter ASCII value: ");
scanf("%d", &i);
printf("%d is ASCII value of %c", i, (char)i); // using type casting to convert int to char
}
void main()
{
int i;
printf("Enter ASCII value: ");
scanf("%d", &i);
printf("%d is ASCII value of %c", i, (char)i); // using type casting to convert int to char
}
Comments
Post a Comment