1 The unary * operator performs indirection: the expression to which it is applied shall be a pointer to an object type, or a pointer to a function type and the result is an lvalue referring to the object or function to which the expression points. If the type of the expression is “pointer to T”, the type of the result is “T”. [ Note: Indirection through a pointer to an incomplete type (other than cv void) is valid. The lvalue thus obtained can be used in limited ways (to initialize a reference, for example); this lvalue must not be converted to a prvalue, see 4.1. —end note ]
Elimizde integer'a pointer olsun. Şöyle yaparız.
std::cout << r << std::endl;
Elimizde nesneye pointer olsun. Şöyle yaparız.
std::wcout <<"A::~A()"<< std::endl;}};struct B : A
std::wcout <<"B::~B()"<< std::endl;}};
A &ra =*(new B);delete&ra;