bits and bytes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • programk1998
    New Member
    • Oct 2018
    • 1

    bits and bytes

    Hi I have to write a program. I have a number given in base 10 and the same number in base 2 which is separated at 8 numbers with 8 digits( as a known 1 bytes=8 bits ). And then I have to change for every 1 and 0 some character ( maybe bit mask? ) Can someone please help me?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    I'm a little confused. A bit is a single 1 or 0. There's no way you can change it into a character.

    If you are using values like '1', then that is not a bit. It's an ASCII character and not a bit.

    Please provide more details about your program.

    Comment

    Working...