fork download
  1. #include <iostream>
  2. #include <vector>
  3. using namespace std;
  4. void r(int arr1[][2])
  5. {
  6. cout << arr1[0][0] << endl;
  7. cout << arr1[1][1] << endl;
  8. }
  9. int main()
  10. {
  11. int a[2][2] = {
  12. {1,1},
  13. {1,2}
  14. };
  15. r(a);
  16. }
  17.  
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
1
2