Two integers A and B are given, find the no of bits that need to be flipped in A to get B
Click for Solution

  • Warning: Illegal string offset 'name' in /home/prepdo6/gpl4you/discussquessub.php on line 681
    A m=x^y; for(i=1;i<32767;i=i*2) { if((m & i)>0) count=count+1; }

[Insert Code]