I was just wondering if there is a standard that defines when C++ (and C, for that matter) aborts evaluation for an if() or while() statement. For example:
Code: Select all
if(( !myclassptr ) || (!myclassptr->element))
{
...
dosomething();
...
}
I know I can tell what order my compiler evaluates the expressions in and whether it stops after the first evaluation, but is there a standard that guarantees my code will still work if I use a different compiler, for example, or is this compiler-specific?
Cheers,
Adam