Friday, October 4, 2013

Program to enter an ASCII code and display the character associated with it



#include<stdio.h>
#include<conio.h>
int main()
{
 int code;
 char ch;
 clrscr();
 printf(" Enter the value of code:");
 scanf("%d", &code);
 ch=(char) code;
 printf(" \n The equivalent character is:%c",ch);
 getch();
return 0;
}

No comments:

Post a Comment