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