convert char to binary

Discussion in 'C' started by just programming, Mar 21, 2008.

  1. just programming

    just programming New Member

    Joined:
    Dec 16, 2006
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    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
     
  2. lead.smart34

    lead.smart34 New Member

    Joined:
    Feb 14, 2008
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    0
    somebody please help even i needed it
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice