Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. void displayArray(int array[][width],int height,int width)
  5. {
  6. for(int i=0;i<height;i++)
  7. {
  8. for(int j=0;j<width;i++)
  9. {
  10. cout<<array[i][j]<<", ";
  11. }
  12. cout<<endl;
  13. }
  14. }
  15. int main()
  16. {
  17. int tab[3][4] = {1, 2, 3, 4,
  18. 1, 21, 32, 4,
  19. 1, 2, 3, 44, };
  20. cout<<displayArray(tab,3,4);
  21.  
  22. return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement