Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int calc(int (*arr)[3]) {
- return arr[0][0] + arr[0][1];
- }
- int main() {
- int Y[2][3];
- Y[0][0] = 2;
- Y[0][1] = 3;
- cout << calc(Y) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement