Coding Challenge #19

Coding Challenge Series / Technical Interview Series

I have 4 bytes (a double-word) represented in little-endian format. Each byte contains the usual 8 bits.

Write the function necessary the individual bits on a console screen as 1s or 0s — as one giant bit string (which properly represents the total number). As a bonus, display the actual decimal number (base-10) as well.