/*#include<stdio.h>
int main()
{ unsigned *pi; unsigned int table[6]={1,2,3,4,5,6};
unsigned int i;
pi=table;
for(i=0;i<6;i++,pi++)
printf("number %d\n",*pi); }
#include<stdio.h> int main()
{ unsigned int*pi; //它的类型是int*更为准确
unsigned int table[6]={1,2,3,4,5,6};
unsigned int i;
pi=table;
for(i=pi;i<pi+6;i++)
printf("number %d\n",*(pi+1));//这种方法错误 因为指针只能传递给指针变量 }
//***************************************** //正确写法 //***************************************** */
#include<stdio.h> int main()
{ unsigned *pi;
unsigned int table[6]={1,2,3,4,5,6};
unsigned int *i;
pi=table;
for(i=pi;i<pi+6;i++)
printf("number %d\n",*i);
}