bool
suggest changeAn 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
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents