I read several articles on the Internet about pointers, but I didn’t figure it out.
Here is the code:
//--------------------------------------------------------------------------- #pragma hdrstop //--------------------------------------------------------------------------- #include <stdio.h> #include <iostream.h> #pragma argsused using namespace std; int main(int argc, char* argv[]) { int *pointer; *pointer = 1000; cout << pointer << endl; cout << *pointer << endl; cout << &pointer << endl; getchar(); return 0; } //--------------------------------------------------------------------------- Actually, what is the question: what is the difference between & and the dereferenced variable in the output (by the way, when compiling everything is different in the output)?