1999-10-27から1日間の記事一覧

論理和・論理積・排他的論理和

PHP

明解C言語 入門編 > 7. 基本型 > 論理和・論理積・排他的論理和 PHP > 1) & ~(~0 << (PHP_INT_SIZE * 8) - 1); } return $count; } function int_bits() { return count_bits(~0); return count_bits(~0); } function print_bits($x) { for ($i = int_bi…