[ create a new paste ] login | about

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

C, pasted on Sep 10:
1
2
3
4
5
6
7
8
9
10
11
int main() {

   int num = 4;

   int i;

   for (i = 7; i >= 0; i--) {
       printf("%d", (num >> i) & 1);
   }

}


Output:
1
00000100


Create a new paste based on this one


Comments: