例10.1通过指针变量访问整型变量。
main()
{int a,B;
intpointer-1,*pointer-2;
a=100;B=10;
pointer-1=&a;/*把变量a的地址赋给pointer-1*/
pointer-2=&B; /*把变量B的地址赋给pointer-2*/
printf("%D,%D\n",a,B);
printf("%D,%D\n",*pointer-1,*pointer-2);

运行结果为:
100,10
100,10