Hi there,
This syntaxe of logical NOT is used to check if a variable is "alive" or not.
When a variable is initialized then it is considered as alive by the compiler.
It can then participate in any necessary operation or treatment.
(!a==0) is equivalent to ((!a) == 0)
i'll rewrite the message to be more significant for you example :
int a;
a=5;
if (!a==0)
cout<<"yes VARIABLE IS ALIVE";
else
cout<<"no VARIABLE IS NOT ALIVE";
Check this link for more explanation paragraph "The Logical Not Operator !":
http://www.functionx.com/cpp/Lesson08.htm[
^]
best regards !