The operator in C++, which is used to access a value referred by a pointer is…
2021
The operator in C++, which is used to access a value referred by a pointer is known as ______.
- A.
indirect operator
- B.
direct operator
- C.
indirection operator
- D.
insertion operator
Attempted by 106 students.
Show answer & explanation
Correct answer: C
In C++, the * operator is used to access the value stored at the memory address held by a pointer. This process is called dereferencing.
The * operator used with pointers is known as the indirection operator or dereference operator.
Example:
int x = 10;
int *p = &x;
cout << *p;Here:
pstores the address ofx*paccesses the value stored at that address, which is10
Therefore, the operator used to access the value referred to by a pointer is called the indirection operator.