??? 02/14/07 13:03 Read: times |
#132889 - Clearer? Responding to: ???'s previous message |
Mircea Gliga said:
printf( "%c", my_byte[j] + '0' );isn't that the same thing with printf( "%c", my_byte[j] + 48 ); Yes, but don't you think it's clearer to use '0' so that it's immediately and explicitly obvious that you're referring to the character '0', rather than rely upon having to remember that 48 happens to be the ASCII code for zero? Also, the former would still work if your system happened to use some character encoding other than ASCII... |