#include <iostream> using namespace std; int main() { // array int arr[]={1,2,3,4,5,6,7,8,9}; for(int i=0;i<10;i++){ cout<<*(arr+i)<<" --> "<<(arr+i)<<endl; } return 0; }
Standard input is empty
1 --> 0x7ffcff387e70 2 --> 0x7ffcff387e74 3 --> 0x7ffcff387e78 4 --> 0x7ffcff387e7c 5 --> 0x7ffcff387e80 6 --> 0x7ffcff387e84 7 --> 0x7ffcff387e88 8 --> 0x7ffcff387e8c 9 --> 0x7ffcff387e90 5216 --> 0x7ffcff387e94