mardi 23 juillet 2019

OR Statement performing all evaluations

In an OR evaluation does C++ continue evaluating past the first TRUE it finds?

ie.

if(Foo() || Bar())
{
  //..
}

If Foo() returns true will Bar() be skipped completely or will it also run that function?

Aucun commentaire:

Enregistrer un commentaire