Last active
August 29, 2015 14:04
-
-
Save HiromichiYamada/cc482710f3f093557922 to your computer and use it in GitHub Desktop.
ビットのすべてが立っている数値を生成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(){ | |
int flag = ~0; // 全部1になっている数値はこれでOK? | |
printf("flag = %x\n", flag); // --> "flag = ffffffff" .. OKっぽい. | |
} | |
// THE PERFECT INSIDER -- http://www.amazon.co.jp/dp/4062639246 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment