Given two integers A & B. Determine how many bits required to convert A to B. Write a function int BitSwapReqd(int A, int B);

Please first define the logic to calculate the number of bits required to convert A to B and then code.

Thankx a lot.

This topic has been dead for over six months. Start a new discussion instead.

Recommended Topics