Negation

How do you negate a Boolean value:
1
2
3
bool a, b;
a = false;
b = negate(a);


What would the function negate() be?
an exclamation mark.
b = not a;
Why not just declare b as true, or am I missing something?
The point of the question was to figure out how to negate a boolean value. The example was just to illustrate the question.
Topic archived. No new replies allowed.