In C++, the operator ______ is used to fetch the value of the object or variable located at the address specified by its operand.

  • &
  • *
  • ->
  • ::
In C++, the "->" operator is known as the member access operator and is used to fetch the value of the object or variable located at the address specified by its operand. It's commonly used to access members of objects pointed to by pointers. For example, if you have a pointer to a class instance, you can use "->" to access its members.
Add your answer
Loading...

Leave a comment

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