I want to know what is the  different between *&aPtr and &*aPtr if replaced          * & and & *   ?
int a;   
int *aptr;  
a = 7;     
aptr=&a;
cout << &* aPtr<< *&aPtr<< endl;
They have the same value, but *&aPtr is an lvalue that refers to aPtr whereas &*aPtr is a prvalue that has the same value as aPtr.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With