Friday, 14 October 2011

Program to print the list of ASCII codes


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

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

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

1 comment:

  1. Your blog is amazing see mine too http://thetechhunt.blogspot.com/ ..it has many amazing graphical program including this ASCII one

    ReplyDelete