AI-generated: Given an 8-bit unsigned integer (a byte), swap its two nibbles. A nibble consists of 4 bits. For example, the input 100 (01100100 in binary) should result in 70 (01000110 in binary).
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.