you are viewing a single comment's thread
view the rest of the comments
[–] 4 points 4 months ago*

*x = dereference or "point to". Treats the variable x as containing a pointer value. Evaluates to a variable existing at the address in x.

&x = reference or "get address of". Evaluates to the address of x.

They're complimentary operators, so *(&x) cancels out and is equvalent to just x.

  • source
  • parent