25 December 2011

C Program to Convert From ASCII code to Character

Leave a Comment


 program to convert ASCII code to Character



#include<stdio.h>
#include<conio.h>

void main()
{
int j;
char c;
a:
clrscr();
printf("enter the ACII code (0 to 127) : ");
scanf("%d",&j);
if(j>127)
{
printf("u hav entered wrong code");
goto a;
}
else
{
c = j;
printf("character corresponding to %d is %c",j,c);
}
}

If You Liked This Post Please Take a Time To Share This Post

You May Also Like...

0 comments:

Post a Comment