2022-09-17 C言語 if文 以下のif文を記載すると #include <stdio.h> int main(void) { int n = -1; if (1) { puts("ture1"); } if (0) { puts("ture0"); } if (-1) { puts("ture-1"); } } 結果が以下のように出力される $ ./hello1 ture1 ture-1