Member Dereferencing Operator

In computer programming, a dereference operator, also known as an indirection operator, operates on a pointer variable. It returns the location value, or l-value in memory pointed to by the variable’s value. In the C programming language, the dereference operator is denoted with an asterisk ( * ). For example, in C, we can declare a variable M that holds an integer value, and a variable *ptr that holds a pointer to an integer value in memory: In C++ Programming we have three different dereferencing operators. Pointer to a member…

Read More