This is not logic :
int *ptr = &otherInt;
When we do that, ptr
gives adress of otherInt, *ptr
gives otherInt.
But we write explicitly that (*ptr) equals adress *ptr = &otherInt
!
Logically, *ptr
should give the adress, and ptr
the otherInt.
Don't you think ?