reverse the bits in c

In the interview generally, bit reversal is the common question for the interviewer. There are several methods to reverse the bits of an integer. If you have good knowledge of unary operators then bit reversal is a very simple question for you otherwise, it can be difficult. So it is…