C++ examples for Data Type:Pointer
To determine the address of a variable, use address operator, &
#include <iostream> using namespace std; int main()// www.j a v a 2s .c o m { int num; num = 22; cout << "The value stored in num is " << num << endl; cout << "The address of num = " << &num << endl; return 0; }