Object Oriented Programming in C++

📖 Definition:

Accessing the value stored at a memory address.

 
cout << *ptr;
 

🧠 Concept:

  • & → Address
  • * → Value at address

🧪 Exercise:

  • Print value and address of a variable