Cには組み込みのboolean型がありません。Cでそれらを使うにはどうすればいいのでしょうか?
最高から最低まで。
オプション1(C99)
#include <stdbool.h>
オプション2
typedef enum { false, true } bool;
**選択肢3
typedef int bool;
enum { false, true };
**選択肢4
typedef int bool;
#define true 1
#define false 0
もし迷ったら、#1を選んでください。