L
LSW
I've tried googling for the answer to this one, but haven't found anything.
In the following code snippet
BOOLEAN SomeValue;
if(SomeValue && SomeFunc())
DoSomething;
If SomeValue is False, will SomeFunc() be evaluated? Or will the
evaluation stop when a False is encountered in a boolean AND expression?
If it makes any difference, I'm currently using Turbo C++ 3.0 to develop
for an embedded system.
Thanks,
In the following code snippet
BOOLEAN SomeValue;
if(SomeValue && SomeFunc())
DoSomething;
If SomeValue is False, will SomeFunc() be evaluated? Or will the
evaluation stop when a False is encountered in a boolean AND expression?
If it makes any difference, I'm currently using Turbo C++ 3.0 to develop
for an embedded system.
Thanks,