Answer to Question 07B-4
No. The condition should be an expression of type bool
(either true or false).
If flag is a variable of type bool then
if(flag)
{
...
}
is equivalent to
if(flag == true)
{
...
}
and
if(!flag)
{
...
}
is equivalent to
if(flag == false)
{
...
}