Monday, January 2, 2012

ASCII values printing on CONSOLE

/*program for printing ASCII values*/

#include

void main()
{
int x;
char p;
clrscr();
printf("ASCII values\n");
x=1;
while(x<=255)
{
printf("%d--%c\t",x,x);
x++;
}

getch();
}

1 comment:

  1. few lines of output are strange that is because some of the ASCII characters are like backspace,tab,newline..etc.

    ReplyDelete