/* Initializing a Pointer * initialize.cpp * Jan 16 2009 */ #include using namespace std; int main() { double x = 10.5, y; double* address; // This is a wild pointer - should set to NULL to be safe.... // address = &x; (commented out - this is a BAD thing) y = *address; cout << "The value stored in address " << address << " is " << y << endl; return 0; }