/* --------------------------------------------------------------------- // // Figure 11.4: Printing the ASCII codes. // // --------------------------------------------------------------------- // */ #include void main( void ) { char ch; puts( "\n Demo: Printing the ASCII codes." ); printf( "\n Please type a character then hit ENTER: " ); ch = getchar(); printf( " The ASCII code of %c is %i \n\n", ch, ch ); }