pooja_khubbar
Newbie level 6
hello friends
can anyone tell me two 4bit numbers....whose multiplication leads to maximum no of 1s in output.
can anyone tell me two 4bit numbers....whose multiplication leads to maximum no of 1s in output.
actually, it doesn't matter how many bits the result is expected with. The result of 1111 x 0001 would be full of 1s without 0s regardless of the expected bit width of the result in a certain case. THe problem is OP didn't ask the question properly and both of your answer and my answer are correct, depending on numbering system.your answer is correct for a 4-bit result.
It seems to me, that signed or unsigned multiply should be specified first.The result of 1111 x 0001 would be full of 1s without 0s regardless of the expected bit width