Sep 2, 2012 at 3:59pm
May I know the meaning of these:
if (!(func())
and
if !(func())
if func();
is a function
Last edited on Sep 2, 2012 at 3:59pm
Sep 2, 2012 at 4:25pm
Here
if (!(func())
the expression inside parentheses is convverted to bool value. If it is equal to true a compount statement affter the if will be executed.
This
if !(func())
is incorrect C/C++ construction. The compiler shall isue an error because after the keyword if open parenthesis shall follow.