Address-of Operator
Get acquainted with the address-of operator in C++.
We'll cover the following
Address-of operator
We now know that when we declare a variable, the compiler allocates space someplace in the memory location. What if we want to know the memory address where the variable has been allocated memory?
For this, we will use the address-of operator &
before the identifier to access the address of the variable.
Get hands-on with 1400+ tech skills courses.