All Questions
2 questions
1
vote
2
answers
136
views
C bit counting causes unexpected behaviour
I was writing a Hamming weight function in C. I wanted to know if I did it correctly, so my plan was to test on the number 5. I didn't want to google the binary for 5 and wrote some code to do it ...
-1
votes
1
answer
4k
views
Convert a Windows .exe file into the binary contents
I have a Microsoft Windows .exe file on my Linux Mint box. I would like to convert the contents into a .txt file, but in the binary (think of 1s and 0s) form.
I have found commands which want to ...