Advertisement
dimon2242

Untitled

Dec 1st, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.21 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int calc(int (*arr)[3]) {
  6.     return arr[0][0] + arr[0][1];
  7. }
  8.  
  9. int main() {
  10.     int Y[2][3];
  11.     Y[0][0] = 2;
  12.     Y[0][1] = 3;
  13.     cout << calc(Y) << endl;
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement