/*Demostrates the simple use of pointers. */ #include #include using namespace std; int main () { int alpha(5), beta(20); /* declaration and initialization of an int not an ARRAY !*/ int *alphaPtr; int *betaPtr; /* the declaration and the initialization of pointers alphaPtr to the alpha and beta.*/ alphaPtr= &alpha ; betaPtr = β cout << " Manipulating int alpha through alphaPtr " << endl; cout << " Before alpha = " << *alphaPtr << endl; *alphaPtr = *alphaPtr + 5 ; // *alphaPtr +=5 ; cout << " Adding 5 to the value pointed to by alphaPtr "<< *alphaPtr <