C++ examples for Operator:Address Operator
Put address operator in front of a variable's name to get the address of the variable.
#include <iostream> using namespace std; int main()/*from w ww. j ava2s. c om*/ { int num; num = 22; cout << "The value stored in num is " << num << endl; cout << "The address of num = " << &num << endl; return 0; }