1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

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