Explanation needed...

May I know the meaning of these:

if (!(func())
and
if !(func())

if func(); is a function
Last edited on
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.
Thanks
Topic archived. No new replies allowed.