-(BOOL) and +(BOOL)

what's the difference between these two?
Before applying the unary + and - operators the bool value will be promoted to an integer value.

false -> 0
true -> 1

So that means

+false == 0
+true == 1
-false == 0
-true == -1
Last edited on
Topic archived. No new replies allowed.