C++ Program to demonstrate the use of address and value operator
Program
#include<iostream>
using namespace std;
int main()
{
int a = 10;
cout << "Value of variable 'a' is:\t" << a << endl;
cout << "Address of variable 'a' is:\t" << &a << endl;
return 0;
}
Output
Value of variable 'a' is: 10
Address of variable 'a' is: 0x7fffe87bb01c