The _______ operator in Go is used to dereference a pointer and access the value it points to.

  • &
  • *
  • ->
  • .
The '*' operator in Go is used for pointer dereferencing. It allows access to the value stored at the memory address pointed to by the pointer. For example, if 'ptr' is a pointer, '*ptr' accesses the value it points to.
Add your answer
Loading...

Leave a comment

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