convert char to binary

just programming's Avatar
Light Poster
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
lead.smart34's Avatar, Join Date: Feb 2008
somebody please help even i needed it