C Programming - Convert an integer to binary

Posted by leo on Stack Overflow See other posts from Stack Overflow or by leo
Published on 2010-02-03T08:50:27Z Indexed on 2010/03/25 0:23 UTC
Read the original article Hit count: 601

Filed under:
|
|

Hi guys - i was hopefully after some tips opposed to solutions as this is homework and i want to solve it myself

I am firstly very new to C. In fact i have never done any before, though i have previous java experience from modules at university.

I am trying to write a programme that converts a single integer in to binary. I am only allowed to use bitwise operations and no library functions

Can anyone possibly suggest some ideas about how i would go about doing this. Obviously i dont want code or anything, just some ideas as to what avenues to explore as currenty i am a little confused and have no plan of attack. Well, make that a lot confused :D

thanks very much

© Stack Overflow or respective owner

Related posts about homework

Related posts about c