Using binary operators, swap the first 2 bytes with the last 2 bytes of an integer.

Using binary operators, swap the first 2 bytes with the last 2 bytes of an integer.

From the BUET MSC (ICT) 2018 – Written exam, question 3 of 15.

More from this paper