Quote Originally Posted by Bluerex99 View Post
also using scanf with %d for the binaries
That is probably a mistake. You can make it work for small binary numbers, but it's not very logical and hard to error check.

If you understand strings, you are best off entering the binary as a string (ascii 0 and ascii 1), then converting to machine representation (that's also a binary number, but the bits are the physical bits in memory), then convert to decimal.