![]() |
#2
yuccn2013-01-03 17:14
|
#include<iostream>
using namespace std;
int main()
{
int s[5]={1,2,3,4,5};
int *a=s;
cout<<"s="<<s<<endl;
cout<<"a="<<a<<endl;
for (int i=1;i<5;i++)
cout<<i<<" "<<(a++)<<endl;
system("pause");
}
为嘛,地址输出的不是连续的,而是隔4个??