I am converting a number to binary and have to use putchar to output each number.
putchar
The problem is that I am getting the order in reverse.
Is the
My guess is that you have a integer and you're attempting to convert it to binary?
And the "answer" is ABCDEFG, but your "answer" is GFEDCBA?
If so, I'd double check the endian of the machine you're doing it on and the machine the "answer" came from.