what does this statement evaluate to? [closed]
bool myBool = true || UnknownFunction();
myBool
will be true
. .....
Fist it check for myBool = true
and it is an || (or)
condition, compiler wont execute the next statement(UnknownFunction()
).
If myBool = false
and condition is || (or)
it will check UnknownFunction()
精彩评论