Code Box
------------------------------------
/*program to convert ASCII value into Character value */
#include<stdio.h>
#include<conio.h>
void main()
{
int i;
char ch;
clrscr();
printf("\n----ASCII TO CHARACTER-----");
printf("\nEnter a number:");
scanf("%d",&i);
ch=i;
printf("\nCharacter vallue of ASCII %d is %c ",i,ch);
getch();
}
No comments:
Post a Comment