DigitalBoy
New Member
Hi all,
Long time reader, first time poster.
I would like to know if there's a code to convert an integer to binary directly in C Language, or do I have to mod (%) the integer until it is 0? ie. 6%2=0, 3%2=1, 1%2=1, then the binary equivelant of 6 is 110.
Thanks in advance.
Long time reader, first time poster.
I would like to know if there's a code to convert an integer to binary directly in C Language, or do I have to mod (%) the integer until it is 0? ie. 6%2=0, 3%2=1, 1%2=1, then the binary equivelant of 6 is 110.
Thanks in advance.