I'm trying to print out a 32-bit integer in binary. For some reason printf("%c", 3) or printf("%c", 255) will print out the ascii characters that look like garbage on a normal screen but will show up (correctly) as 03 and ff, respectively, on a hex editor. However, this does not work with printf("%c", 0). This will show 20 in a hex editor and a space on the screen (which is appropriate for ascii 20) I have tried chr(0) and other combinations of types and print formats with no luck. I'm not worried about the %c only printing out 16 bits, just getting 00 to appear on a hex editor.
Thanks. Beth