GuideFoot - Learn Together, Grow Smarter. Logo

In Computers and Technology / High School | 2014-04-10

How many bits must be "flipped" (i.e., changed from 0 to 1 or from 1 to 0) in order to capitalize a lowercase 'a' that's represented in ASCII?

Asked by SamSmith

Answer (2)

Only one. 00100001 is 'A' 01100001 is 'a'

Answered by Anonymous | 2024-06-10

To capitalize the lowercase 'a' (ASCII 97) to uppercase 'A' (ASCII 65), you must flip 1 bit, specifically the sixth bit in their binary representations. The binary for 'a' is 01100001 , while for 'A' it's 01000001 . Thus, only one bit needs to be changed.
;

Answered by Anonymous | 2024-12-24