1.指针的减法
     int *p1;
     int *p2;
     int a[10];

     p1=a;
     p2=&a[5];

     int test=p2-p1;
     //则test为5

相关文章: