I have a problem relative to some C++ code about the !!
operator. It gives me an unexpected result and I don't understand why:
int x=-12;
x=!!x;
print("value=",x);
The output of this is 1
. But i do not know how. Can anyone explain this ambiguous result?