ProgrammingModerate

In ASCII, what is 'k' ^ 32 as a character?

  1. A. 'k'
  2. B. '0'
  3. C. '\n'
  4. D. 'K' (uppercase)

Correct answer: D. 'K' (uppercase)

Bit 5 (value 32) is the case bit for ASCII letters, so XOR with 32 toggles case: 'k' becomes 'K'.

More C Programming questions

Exams that ask this topic