Re:Two's complement – You beauty
by 1010111 on Wednesday January 11, 2017 @03:50AM
(#13372635)
It uses a bit mask from the leftmost bit to the rightmost and prints the respective bits in x. Is that more complicated than allocating memory on the heap, storing the bits, and then printing them in reverse?
Also the code above does not contain anything C specific, with the exception of 'putchar' let's say.
Also the code above does not contain anything C specific, with the exception of 'putchar' let's say.