bitPhile

Home

❯

notes

❯

tech

❯

c++

❯

Dereferencing a pointer in C++

Dereferencing a pointer in C++

May 04, 20261 min read

  • cpp
  • programming

Dereference operator * is used to get the object at the address stored by a pointer. This operator returns lvalue the pointer is pointing. For example,

int value{100};
std::cout << *(&value) << "\n";

&value is the pointer object returned by address-of operator which then dereferenced to give lvalue value whose value is 100 which gets printed.

References

  1. https://www.learncpp.com/cpp-tutorial/introduction-to-pointers/

Graph View

Backlinks

  • const pointer to const objects in C++
  • const pointers in C++
  • Null pointers in C++
  • Pass arguments to function by address in C++
  • Pointer to const value in C++
  • What are pointers in C++?
  • Return by reference and address
  • Returning optional results in C++

Created with Quartz v4.5.1 © 2026

  • Made with ❤️ by Nitin