By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,050 Members | 1,444 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,050 IT Pros & Developers. It's quick & easy.

bits and bytes

P: 1
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?
Oct 18 '18 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 9,197
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.
Oct 18 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.