←
Top
/
Answer-09A-4
Answer to Question 09A-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) {
...
}