c++ Pointers &* and *& are NOT the same

Channel:
Subscribers:
144
Published on ● Video Link: https://www.youtube.com/watch?v=YdrdGA5_Hbo



Duration: 0:11
62 views
0


& * is not the same as * &

The first time I read about the above, the "C" book said they both did the same thing, and , namely to cancel each other . I believed it. what else .
Not true though. That's why I dropped this slide show .
view at 720 full screen to read the text. , and pause to read. No audio .

quick summary of the point ;

& * returns a hardware address of a memory space RHS ( right hand side value ) only .
* & returns the content of a memory space LHS ( left hand side value )

results from 2 different memory spaces are returned ! Even though the values are the same .


the returned numerical data values may be the same,
but try and make an assignment( = ) to a RHS , won't work. big difference.







Tags:
cpp
pointers
c++