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;
}

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести