Possible Duplicate:
Is array name a pointer in C?
How do I use arrays in C++?
Following program shows the same attributes of an array and pointer... Are array elemenst somehow related to pinters?
#include <iostream>
using namespace std;
int main(){
int a[3];
for(int i=0;i<3;i++){
cin>>*(a+i);
cout<<*(a+1);
}
return 0;
}