1 2 3 4 5 6 7 8 9 10 11 12
#include <stdio.h> int main(void) { int i = 8, k; int byte = 0xc7; while (i-->0) k = (byte >> i) & 1, printf("%c", '0' + k); printf("\n"); return 0; }
1
11000111