How typedef influences parameter of the function, which is the pointer to the constant type and what happens when you try to compile and execute the following code?
class CBase {
public:
    /*...*/
};

typedef CBase * LPBASE;

void process( const LPBASE pBase)
{
    /*...*/
}

class CDerived : public CBase
{
    /*...*/
};

int main() {
    CDerived d;
    const CDerived* pd = &d;
    process(pd);
    return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes