convert char to binary

Light Poster
21Mar2008,21:49   #1
just programming's Avatar
hello , i have a question . how can i convert a char to the equal bit sequence in C ?

for example char x[1] = '0' it is 00000000000000000000000000000000 in a system that size of char is 4 bytes .

also , is it possible to print each bit ?

thanks in advance
Contributor
25Mar2008,15:30   #2
lead.smart34's Avatar
somebody please help even i needed it