numof 1 bits in 0 to 255 by inaniwa

i,j;main(s){for(;i<256;i++,putchar(48+s))for(s=j=0;j<8;)s+=i>>j++&1;}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page