Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
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.