布林

一個整數型別,其值可以是 true 或 false。

bool is_even(int x) {
    return x%2 == 0;
}
const bool b = is_even(47); // false