/*-------------------------------------------------------------------*/ /* fromascii.c */ /*-------------------------------------------------------------------*/ #include static char cChar; static int iAsciiCode; int main(int argc, char *argv[]) /* Read an ASCII code from stdin, and write the character that has that ASCII code to stdout. */ { printf("Enter an ASCII code: "); scanf("%d", &iAsciiCode); cChar = (char)iAsciiCode; printf("The character with that ASCII code is %c.\n", cChar); return 0; }