Q1) What does the compiler does if I declare a base class VIRTUAL ??

Q2) In the below test code ,

class A : public B, public C
{
};

The order of constructor invocation is :
B
C
A

but if C is virtual base class the it changes to :
C
B
A

Why ??

Q3) Write a macro that swaps any data given to it (Eg: char , int , pointer 
of any kind , float )



-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/algogeeks/-/mj25b-AYRgAJ.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to