Given:
int **a; // (double pointer)
int *b; // (pointer)
Is there any difference between *a=b
and a=&b
?
The first, *a = b;
copies the value of the variable b
to the location a
points to.
The second, a = &b
copies the address of b
to a
.
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