Dude google C++ Faqs. You will find all your answers. You can also buy some
books

1. C++ Common Knowledge: Essential Intermediate Programming
2. Effective and More effective C++
3. C++ gotchas

On Sat, Sep 24, 2011 at 11:52 AM, Decipher <ankurseth...@gmail.com> wrote:

> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
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