C++ Basic Type Keywords bool

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

An integer type whose value can be either true or false.

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


Got any C++ Question?