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.
Loading...
Related Quiz
- How does a break statement inside a nested loop behave?
- The members of a struct are _______ by default.
- What is the default value of an uninitialized integer variable in C++?
- In a financial application, you are processing transaction data in a loop. When a fraudulent transaction is detected, it needs to be logged and then the processing needs to continue with the next transaction. How would the continue statement be utilized effectively in this scenario?
- Which of the following operators cannot be overloaded in C++?