Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void displayArray(int array[][width],int height,int width)
- {
- for(int i=0;i<height;i++)
- {
- for(int j=0;j<width;i++)
- {
- cout<<array[i][j]<<", ";
- }
- cout<<endl;
- }
- }
- int main()
- {
- int tab[3][4] = {1, 2, 3, 4,
- 1, 21, 32, 4,
- 1, 2, 3, 44, };
- cout<<displayArray(tab,3,4);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement