1 #include <iostream> 2 3 using namespace std; 4 5 6 int main() 7 { 8 int i; 9 int *ptr=&i; 10 i=10; 11 cout<<"i="<<i<<endl; 12 cout<<"*ptr="<<*ptr<<endl; 13 14 return 0; 15 }