danilom

conta bits

Sep 8th, 2011
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.14 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5.         int i, b;
  6.         for(b=~(i=0);b;b<<=1,++i);
  7.         printf("%d\n",i);
  8.         return 0;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment