fork(2) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. int** x = new int*[10];
  6. int a[4] = { 1, 2, 3, 4 };
  7. x[0] = a;
  8. for(int i = 0 ; i < 4 ; ++i)
  9. std::cout << x[0][i] << std::endl;
  10.  
  11. delete []x;
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
1
2
3
4