English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I wrote the following program But not all the charecters are getting printed. I want to print graphic charecters also . is it possible in linux?
main()
{
int ch;
for(ch=0;ch<=255;ch++)
printf("%c =%d\n",ch,ch);
}

2006-08-07 17:09:37 · 3 answers · asked by prasoonkg 1 in Computers & Internet Programming & Design

3 answers

:-) That's because not all are "printable" characters. How do you print the bell sound :-)

However, you can do something like BASE64 encode the ones that can't be printed.

2006-08-07 18:24:53 · answer #1 · answered by Anonymous · 0 0

Your code looks good. However Not all 256 characters are printable.

2006-08-07 17:13:52 · answer #2 · answered by rscanner 6 · 0 0

not all the 256 can be printed

2006-08-07 18:55:56 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers