Friday, October 1, 2010

C program to display all the printable ASCII characters in a tabular form, each row with 10 characters.

int main()
{
int a;
for(a=0;a<=255;a++)
{
printf("%4d%2c",a,a);
if(a%10==9)
{
printf("\n");
}
}
getch();
}

No comments:

Post a Comment