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

Read the passage. As Chief of Staff of the U.S. Army before and during World War II, [George C.] Marshall earned a great share of the responsibility for the All
Which one of these foods must be cooked to at least 165°f? a. ground beef b. pork c. vegetables d. chicken?
If sin 42° =2/3, then cos 48°=
How do we refer to self-contained state actions: monadic. dyadic. triadic. k-adic?
So2 (5.00 g) and co2 (5.00 g) are placed in a 750.0 ml container at 50.0 °c. the partial pressure of so2 in the container was __________ atm.
.Find the zeros of the polynomial function. f(x) = x 3 + 5x 2 – 4x – 20 A. x = –5, x = 4 B. x = –2, x = 2 C. x = –5, x = –2, x = 2 D. x = 5, x = –2, x =
Cell mutations are not caused by which of the following? Exposure to Chemicals DNA Replication Translation Exposure to Radiation
What is one theory to explain what's happened to the settlers at Roanoke
Find PS if ABC=PQR, AD is an altitude of ABC, PS is an altitude of PQR, AD=12, AC=16 and PR=10 a. 7.5 b. 19.2 c. 4.62 d. 19.5
What is the creation of a waxy substance when there is hydrogenation of the fat in the body?