|
|
|
|
|
by 1010111
3451 days ago
|
|
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. |
|