The _______ operator in Go is used to perform pointer indirection.

  • &
  • *
  • ->
  • =>
In Go, the * operator is used for pointer indirection. It is also known as the dereferencing operator. When applied to a pointer variable, it retrieves the value that the pointer points to. For example, if ptr is a pointer variable pointing to an integer, *ptr gives the value stored at the memory location pointed to by ptr.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *