#include <iostream>
#include <string.h>
using namespace std;int main(void)
{
int i;
int p[]={0,1,2,3};
for(i=0;i<4;i++)
{
printf("%d ",i[p]);
}
cout<<endl;
for(i=0;i<4;i++)
{
printf("%d ",p[i]);
}
return 0;
}
麻烦大侠能解释下这个程序为什么输出结果是:0 1 2 3
0 1 2 3
#include <iostream>
#include <string.h>
using namespace std;}
麻烦大侠能解释下这个程序为什么输出结果是:0 1 2 3
0 1 2 3