1 2 3 4 5 6 7 8 9 10
main() { char a = 10; int i; for (i = 0; i < 8; i++) { printf("%d", !!((a << i) & 0x80)); } printf("\n"); return 0; }
1
00001010