What is the difference between *a=b and a=&b?

c, pointers

Solution

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`.

Problem

Given: ``` int **a; // (double pointer) int *b; // (pointer) ``` Is there any difference between `*a=b` and `a=&b`?

Original source