How do uppercase and lowercase letters differ by only one bit?

Posted by Vibhakar SInha on Stack Overflow See other posts from Stack Overflow or by Vibhakar SInha
Published on 2010-08-25T20:16:44Z Indexed on 2010/12/22 1:54 UTC
Read the original article Hit count: 517

I have found one example in Data and Communication Networking book written by Behrouza Forouzan regarding upper- and lowercase letters which differ by only one bit in the 7 bit code.

For example, character A is 1000001 (0x41) and character a is 1100001 (0x61).The difference is in bit 6, which is 0 in uppercase letters and 1 in lowercase letters. If we know the code for one case, we can easily find the code for the other by adding or subtracting 32 in decimal, or we can just flip the sixth bit.

What does all this mean?

I have found myself very confused with all these things. Could someone provide examples of how these things really work out?

© Stack Overflow or respective owner

Related posts about ascii

Related posts about bit-manipulation