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

what is a reason for why many immigrants provoked fear in native-born Americans?
Nilsa is working on a 60-minute test. There are 20 questions on the test. If it takes her 20 minutes to complete 12 0f the questions, what is the greatest amoun
Form is the combination of musical elements like rhythm, pitch, and melody. Would This Be True Or False
Why did the French establish settlements along the Great Lakes and the St. Lawrence?
If the probability of rain ia 0.87, what is the probability of NO rain? HELP
Is 4/7 and 20/35 equivalent ratios?
What is the theme of the story of Rapunzel
Write as a fraction or as a mixed number in simplest form 6.025
what south american country borders central america
why did president Roosevelt support conservation