C Dereference Pointer - javatpoint
https://www.javatpoint.com/c-dereference-pointerC dereference pointer As we already know that "what is a pointer", a pointer is a variable that stores the address of another variable. The dereference operator is also known as an indirection operator, which is represented by (*). When indirection operator (*) is used with the pointer variable, then it is known as dereferencing a pointer.
C++ Dereferencing - W3Schools
www.w3schools.com › cpp › cpp_pointers_dereferencecout << ptr << " "; // Dereference: Output the value of food with the pointer (Pizza) cout << *ptr << " "; Try it Yourself ». Note that the * sign can be confusing here, as it does two different things in our code: When used in declaration (string* ptr), it creates a pointer variable. When not used in declaration, it act as a dereference ...