fork(1) download
  1. #include <iostream>
  2. #include <stdlib.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. int foo[2][2];
  7. foo[0][0] = 1;
  8. foo[0][1] = 2;
  9. foo[1][0] = 3;
  10. cout << *(*foo + 0) << endl;
  11. cout << *(*foo + 1) << endl;
  12. cout << *(*foo + 2) << endl;
  13. }
Success #stdin #stdout 0s 3460KB
stdin
Standard input is empty
stdout
1
2
3