コード
#include <stdio.h> int main(void){ int bn; bn = -1; if (bn & ~077777) { printf("%d\n", bn); } bn = 0; if (bn & ~077777) { printf("%d\n", bn); } bn = 1; if (bn & ~077777) { printf("%d\n", bn); } bn = 32767; if (bn & ~077777) { printf("%d\n", bn); } bn = 32768; if (bn & ~077777) { printf("%d\n", bn); } }