ctuek7664 ctuek7664
  • 25-09-2017
  • Computers and Technology
contestada

What bit position in an ascii code must be complemented to change the ascii letter represented from uppercase to lowercase and vice versa?

Respuesta :

tonb
tonb tonb
  • 26-09-2017
Flip bit position 5 to accomplish this. This maps to hex value 0x20, where the least significant bit is assumed to be at position 0.

Example: ascii "A" = 0x41, "a" = 0x61.  0x41 xor 0x61 = 0x20.

You would implement a flip function by XOR'ing the character value with 0x20.
Answer Link

Otras preguntas

why did so many African Americans migrate north throughout the 1920s? A.) for the milder climate B.)for a chance at a better future C.)to save money D.)to serv
(1) Jack had been without a car since Monday. (2) The car needed a new battery, and Jack was broke. (3) Although he was embarrassed, Jack called his mother. (4)
whats the answer for 7x-3x^2=85+2x^2=2x and how do you solve it
graph the solution 10x + 6y =100
Choose the equation of the horizontal line that passes through the point (-8,-7),
A river boat tour begins by going 60 miles upstream against a 5 mph current. Then the boat turns around and returns with the current. What still-water speed sho
order from least to greatest 2.614,2.146,2.46,2.164
order from least to greatest 5.04,5.4,5.406,5.064
Bob bought 24 hockey tickets for $83. Adult tickets cost $5.50 and child tickets cost $2.00. How many of each did he buy?
Why is it important for the young plant that lid of the seed tray is transparent?