指针目标

 1 #include<stdio.h>
 2 int main()
 3 {
 4  int a = 20;
 5  int b = 30;
 6  const int *p = &a;
 7  printf("*p = %d\n",*p); //20
 8 
 9 a= 200;
10 printf("*p = %d\n",*p);//20 
11  
12 p= &b;
13 //*p = 300;
14 printf("*p = %d\n",*p);
15 return 0;
16  
17 }

 

posted @ 2016-05-23 16:57  自由石匠  阅读(130)  评论(0编辑  收藏  举报