#include<stdio.h>
int main()
{
long a,b;
long *pa,*pb;
pa=&a;
pb=&b;
*pa=10;
*pb=100;
printf("\ta=%ld,\t*pa=%ld\n",a,*pa);
printf("\tb=%ld,\t*pb=%ld\n",b,*pb);
pa=pb;
printf("\tb=%ld,\t*pb=%ld",b,*pb);
return 0;
}
指针变量前没有“ * ”运算符,表示访问指针变量pa和pb本身。