Sunday 25 September 2011

Program that print the single character list of ASCII codes



#include <stdio.h>
#include <conio.h>


/*****************************************************************************/
/* Program that print the single character list of ASCII codes from ! to ~   */
/*****************************************************************************/


void main()
{
int i;
   char c = ' ';
   for (i = 0; i < 95; i++ )
   {
    printf("\n\n ASCII code of ' %c ' is %d",c++, c );
   }
   getch();
}


No comments:

Post a Comment