Bitmasking-convert a into b

question is suppose you are given two numbers a and b you have to tell minimum no. of bits that you need to change to convert a into b
IN MY CODE I AM GETTING NO OUTPUT