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

The dissolution of the Union began in the state where anti-Northern secessionist sentiment had long been intense: a. Kansas. c. Kentucky. b. Georgia. d. South C
why are cities an essential part of civilization?
How did new technology promote urban growth around the turn of the century
What is one of the goals of the Healthy People 2020 initiative? A. To improve peoples’ health and quality of life B. To increase production of dairy milk throu
Which dictator came to power in Italy? a. Adolf Hitler b. Joseph Stalin c. Benito Mussolini d. Fidel Castro
The ring on Leslie's right hand was a gift from her boyfriend subject is?
Describe the power to pick a president
The ring on Leslie's right hand was a gift from her boyfriend subject is?
Which revision best corrects the errors in the given sentence? I'll do something quiet such as reading, gardening, or bird-watching instead of riding roller coa
Which sentence is punctuated correctly? Don wore braces on both of his legs still; he was an avid runner. Don wore braces on both of his legs: still he was