exercises 2.18

 1 #include <iostream>
 2 using namespace std;
 3 
 4 int main()
 5 {
 6     int *p,val=24;
 7     p=&val;
 8     cout<<*p<<endl;
 9     *p=42;
10     cout<<val<<endl;
11     return 0;
12 }  

 

posted @ 2015-04-12 19:26  无敌烤皮蛋  阅读(74)  评论(0)    收藏  举报