I\'m trying to convert a decimal number to binary but I somehow end up getting \'random\' ASCII symbols as an output. Here is my program:
#include
You initialize i to 50 yet your binary buffer is only 10 characters in length. So you are not populating the correct elements inside the loop.