[ create a new paste ] login | about

Link: http://codepad.org/O0jjZUAu    [ raw code | output | fork ]

C, pasted on Aug 20:
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;
}


Output:
1
00001010


Create a new paste based on this one


Comments: