123456789101112131415161718 |
- #include <iostream> // to be compiled with two file2.cpp
- int tom = 3;
- int dick = 30;
- static int harry = 300;
- void remote_access();
- int main()
- {
- using namespace std;
- cout << "main() reports the following addresses:\n";
- cout << &tom << " = &tom, " << &dick << " = &dick, ";
- cout << &harry << " = &harry\n";
- remote_access();
-
- return 0;
- }
|