fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a[3][3];
  7.  
  8. const int i = 1;
  9. const int j = 2;
  10.  
  11. cout << &a[i][j] << endl;
  12.  
  13. cout << (*(a+i)+j) << endl;
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 3340KB
stdin
42
stdout
0xbfb3b480
0xbfb3b480