Original Post
Hello all. I have a question about pointers.
int *a,b=10,c=20;
a = &b
cout << *a << endl;
a = &c
cout << *a << endl;
In that bit of code, the memory address of b is assigned to *a and the value is printed, then the same if done for c. What I am wondering, is how I can (if I can) assign any memory address to *a, rather then just that of another variable. For example, so I can print the contents my RAM tot he screen or search for certain values, etc. Thanks for any help :)