// Function for multiplication
int multiply(int n, int m)
{
int ans = 0, count = 0;
while (m)
{
if (m % 2 == 1)
ans += n << count;
// increment of place value (count)
count++;
m /= 2;
}
return ans;
}
What does that expression mean? How to rewrite this expression in a more beginner friendly form?