Admin Admin
Posts : 216 Join date : 2011-06-17 Location : Rawalpindi
| Subject: Convert ASCII to Character in C Thu Oct 27, 2011 5:33 am | |
| Convert ASCII to Character in C #include #include void main(void) { clrscr(); int a,b; a=0; b=1; printf("Please enter a value greater than 256 to exit!\n\n"); while(b<=256) { if(a>256) break; else printf("Please Enter any Decimal value to see its Character value?"); scanf("%d",&a); printf("%d=%c\n\n",a,a); b++; } printf("\nPress any key to EXIT..."); getche(); }
| |
|