Having searched about a dozen times, and read 9 pages on this search before finding it, I found a code that can return the binary value for a number you feed in. However, it's recursive, and I don't understand how it works. Any chance of getting it explained ?

Thanks.Code:long bin_conv(int number) { int remainder; long ans=0; if (number == 0) return 0; remainder = number % 2; number = number / 2; ans = bin_conv(number) * 10 + remainder; return ans; }