TechnologY

Pure virtual functions

http://www.learncpp.com/cpp-tutorial/126-pure-virtual-functions-abstract-base-classes-and-interface-classes/ Pure virtual (abstract) functions and abstract base classes So far, all of the virtual functions we have written have a body (a definition). However, C++ allows you to create a special kind of virtual function called a pure virtual function (or abstract function) that has no body at all! A pure virtual function simply acts as a… Continue reading Pure virtual functions

TechnologY

The Game Of Incrementation

Output with EXPLANATION… void main() { int j = 10; printf(“%d****%d*****%d\n”, j,++j,j++); j = 10; printf(“%d****%d*****%d\n”, j++,j,j++); j = 10; printf(“%d****%d*****%d\n”, ++j,j++,j); printf(“change\n”); j = 10; printf(“%d****%d*****%d\n”, j,j++,++j); j = 10; printf(“%d****%d*****%d\n”, ++j,j,j++); j = 10; printf(“%d****%d*****%d\n”, j++,++j,j); getch(); } OUTPUT in VS2010 in Windows7 and gcc in Ubuntu… 12****12*****1011****12*****1012****10*****12change12****11*****1212****12*****1011****12*****12 Because the precedence order postorder>preorder>local… Continue reading The Game Of Incrementation