Unfortunately, bit shifting is part of the exam. I have never used bit shifting before. In all of the examples that I have seen (including the K&B book), it is assumed that you know what the bit pattern is for a given integer. .
My question: how are you supposed to know what the bit pattern is for an integer? Is there a formula for this? thnx, Nikki