Using logical bitwise operators to convert ASCII to binary -
how and, or, not or xor used convert 7-bit ascii code numeric character 7-bit pure binary representation of number?
code and 11112
you have take 4 lowest significant bits of ascii code.
please note single ascii character can represent digits 0
9
4 output bits enough represent resulting number.
Comments
Post a Comment