Order of execution in operator
The compiler can evaluate the function printcbase() as this: void printcbase(cbase* b ){ int a = b->FooA(); // line 1 int b = b->FooB(); // line 2 std::cout << a; // line 3 std::cout << b; // line 4 stc::cout << std::endl; } or some of many permutatins of lines marked as 1 – 4. … Read more